FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / ambig1.C
blob4551dc7d6e45a044b6aabf92b541116895647bc4
1 // Testcase for ambiguity between functional cast and abstract declarator.
2 // This ambiguity accounts for 6 of the r/r conflicts.
3 // Special g++ Options: -pedantic-errors
5 int i = sizeof (int ());        // ERROR - sizeof applied to fn type
6 int j = sizeof (int () + 1);