diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/ambig2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/ambig2.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/ambig2.C b/gcc/testsuite/g++.old-deja/g++.jason/ambig2.C new file mode 100644 index 000000000..1a6f67f25 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/ambig2.C @@ -0,0 +1,11 @@ +// { dg-do assemble } +// { dg-options "-Wno-pointer-arith" } +// Testcase for ambiguity between cast and parmlist. +// This ambiguity accounts for 1 of the r/r conflicts. +// Do not compile with -pedantic so that the compiler will accept taking +// the sizeof a function type. + +void f(){ + (void)sizeof(int((int)1.2)); + (void)sizeof(int((int))); // { dg-bogus "" } +} |