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