URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 384 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// g++ 1.37.1 bug 900404_02
|
// g++ 1.37.1 bug 900404_02
|
|
|
// g++ fails to treat multicharacter literals as type "int" as required by
|
// g++ fails to treat multicharacter literals as type "int" as required by
|
// section 2.5.2 of the C++ Reference Manual.
|
// section 2.5.2 of the C++ Reference Manual.
|
|
|
// The result is that the following program will exit with a nonzero
|
// The result is that the following program will exit with a nonzero
|
// exit status.
|
// exit status.
|
|
|
// keywords: character literals, multi-character literals, int type
|
// keywords: character literals, multi-character literals, int type
|
|
|
int exit_status = 0;
|
int exit_status = 0;
|
|
|
void function0 (int i) // function that should be called
|
void function0 (int i) // function that should be called
|
{
|
{
|
i = i;
|
i = i;
|
}
|
}
|
|
|
void function0 (char c) // function that is actually called
|
void function0 (char c) // function that is actually called
|
{
|
{
|
c = c;
|
c = c;
|
exit_status++;
|
exit_status++;
|
}
|
}
|
|
|
int main () { function0 ('abcd'); return exit_status; } // { dg-warning "" }
|
int main () { function0 ('abcd'); return exit_status; } // { dg-warning "" }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.