gcc/testsuite/gcc.dg/noncompile/old-style-parm-2.c
raw| 1 | /* Test that parameter without declaration specifiers in old-style |
| 2 | parameters is not accepted. */ |
| 3 | /* Origin: Joseph Myers <[email protected]> */ |
| 4 | /* { dg-do compile } */ |
| 5 | /* { dg-options "-std=gnu89" } */ |
| 6 | |
| 7 | void |
| 8 | f(a) |
| 9 | a; /* { dg-error "parse error|syntax error|no type or storage class|expected declaration specifiers" } */ |
| 10 | { |
| 11 | } |