URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 384 |
// { dg-do run }
|
// { dg-do run }
|
// g++ 1.36.1 bug 900220_02
|
// g++ 1.36.1 bug 900220_02
|
|
|
// g++ treats plain `char' and `unsigned char' as different types, however
|
// g++ treats plain `char' and `unsigned char' as different types, however
|
// it fails to treat `signed char' as being a different type from plain
|
// it fails to treat `signed char' as being a different type from plain
|
// `char' as called for by both the ANSI C standard and the C++ reference
|
// `char' as called for by both the ANSI C standard and the C++ reference
|
// manual.
|
// manual.
|
|
|
// keywords: plain char type, signed char type, unsigned char type, overloading
|
// keywords: plain char type, signed char type, unsigned char type, overloading
|
|
|
void overloaded (char) {
|
void overloaded (char) {
|
}
|
}
|
|
|
void overloaded (signed char) { // { dg-bogus "" }
|
void overloaded (signed char) { // { dg-bogus "" }
|
}
|
}
|
|
|
void overloaded (unsigned char) {
|
void overloaded (unsigned char) {
|
}
|
}
|
|
|
void global_function ()
|
void global_function ()
|
{
|
{
|
char c = 0;
|
char c = 0;
|
signed char sc = 0;
|
signed char sc = 0;
|
unsigned char uc = 0;
|
unsigned char uc = 0;
|
|
|
overloaded (c);
|
overloaded (c);
|
overloaded (sc);
|
overloaded (sc);
|
overloaded (uc);
|
overloaded (uc);
|
}
|
}
|
|
|
int main () { return 0; }
|
int main () { return 0; }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.