gcc/testsuite/gcc.dg/pr91193-1.c
raw| 1 | /* Test ICE using function name in parameter type in old-style function |
| 2 | definition (bug 91193). */ |
| 3 | /* { dg-do compile } */ |
| 4 | /* { dg-options "-std=gnu17" } */ |
| 5 | |
| 6 | typedef int T; |
| 7 | |
| 8 | void |
| 9 | T (x) /* { dg-error "redeclared as different kind of symbol|defaults to 'int'" } */ |
| 10 | T x; /* { dg-error "expected declaration specifiers" } */ |
| 11 | { |
| 12 | } |