gcc/testsuite/gcc.dg/noncompile/pr79758.c
raw| 1 | /* PR c/79758 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-additional-options "-Wno-old-style-definition -fpermissive" } */ |
| 4 | |
| 5 | void fn1 (int[a]) { }; /* { dg-error "undeclared here" } */ |
| 6 | void fn1 (b) { }; /* { dg-error "redefinition" } */ |
| 7 | /* { dg-warning "defaults to 'int'" "" { target *-*-* } .-1 } */ |