gcc/testsuite/g++.old-deja/g++.jason/ambig1.C
raw| 1 | // { dg-do assemble } |
| 2 | // { dg-options "-pedantic-errors" } |
| 3 | // Testcase for ambiguity between functional cast and abstract declarator. |
| 4 | // This ambiguity accounts for 6 of the r/r conflicts. |
| 5 | |
| 6 | int i = sizeof (int ()); // { dg-error "9:invalid application of .sizeof. to a function type" } sizeof applied to fn type |
| 7 | int j = sizeof (int () + 1); |