2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.bugs / 900404_02.C
blob3f87b614be4da82526789f40e1b7174455328f06
1 // { dg-do assemble  }
2 // g++ 1.37.1 bug 900404_02
4 // g++ fails to treat multicharacter literals as type "int" as required by
5 // section 2.5.2 of the C++ Reference Manual.
7 // The result is that the following program will exit with a nonzero
8 // exit status.
10 // keywords: character literals, multi-character literals, int type
12 int exit_status = 0;
14 void function0 (int i)          // function that should be called
16   i = i;
19 void function0 (char c)         // function that is actually called
21   c = c;
22   exit_status++;
25 int main () { function0 ('abcd'); return exit_status; }         // { dg-warning "" }