PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / parm-forwdecl-3.c
blob7937532fb3119348cd694b0b77993f22338fbd34
1 /* Test GNU parameter forward declarations. Error with
2 -pedantic-errors. */
3 /* Origin: Joseph Myers <joseph@codesourcery.com> */
4 /* { dg-do compile } */
5 /* { dg-options "-pedantic-errors" } */
7 int f1(int a; int a); /* { dg-error "ISO C forbids forward parameter declarations" } */
8 int f2(int a; int a) { return 0; } /* { dg-error "ISO C forbids forward parameter declarations" } */