Daily bump.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900404_02.C
blob4099daa31e48cbfb53e27b2d618cbda7a097fced
1 // g++ 1.37.1 bug 900404_02
3 // g++ fails to treat multicharacter literals as type "int" as required by
4 // section 2.5.2 of the C++ Reference Manual.
6 // The result is that the following program will exit with a non-zero
7 // exit status.
9 // keywords: character literals, multi-character literals, int type
11 int exit_status = 0;
13 void function0 (int i)          // function that should be called
15   i = i;
18 void function0 (char c)         // function that is actually called
20   c = c;
21   exit_status++;
24 int main () { function0 ('abcd'); return exit_status; }         // WARNING -