diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/ambig1.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/ambig1.C | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/ambig1.C b/gcc/testsuite/g++.old-deja/g++.jason/ambig1.C new file mode 100644 index 00000000000..4551dc7d6e4 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/ambig1.C @@ -0,0 +1,6 @@ +// Testcase for ambiguity between functional cast and abstract declarator. +// This ambiguity accounts for 6 of the r/r conflicts. +// Special g++ Options: -pedantic-errors + +int i = sizeof (int ()); // ERROR - sizeof applied to fn type +int j = sizeof (int () + 1); |