2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / ambig2.C
blob1a6f67f2521443b2256dd516e5638de3f9dff1a9
1 // { dg-do assemble  }
2 // { dg-options "-Wno-pointer-arith" }
3 // Testcase for ambiguity between cast and parmlist.
4 // This ambiguity accounts for 1 of the r/r conflicts.
5 // Do not compile with -pedantic so that the compiler will accept taking
6 // the sizeof a function type.
8 void f(){
9   (void)sizeof(int((int)1.2));
10   (void)sizeof(int((int)));             // { dg-bogus "" }