| 1 |
// { dg-do assemble } |
| 2 |
// g++ 1.37.1 bug 900404_02 |
| 3 |
|
| 4 |
// g++ fails to treat multicharacter literals as type "int" as required by |
| 5 |
// section 2.5.2 of the C++ Reference Manual. |
| 6 |
|
| 7 |
// The result is that the following program will exit with a nonzero |
| 8 |
// exit status. |
| 9 |
|
| 10 |
// keywords: character literals, multi-character literals, int type |
| 11 |
|
| 12 |
int exit_status = 0; |
| 13 |
|
| 14 |
void function0 (int i) // function that should be called |
| 15 |
{ |
| 16 |
i = i; |
| 17 |
} |
| 18 |
|
| 19 |
void function0 (char c) // function that is actually called |
| 20 |
{ |
| 21 |
c = c; |
| 22 |
exit_status++; |
| 23 |
} |
| 24 |
|
| 25 |
int main () { function0 ('abcd'); return exit_status; } // { dg-warning "" } |