PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / inline-14.c
blobb2bfb67c5bc08ae5bdef1f198ea69cca87eeda36
1 /* Check that you can't redefine a C99 inline function. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c99" } */
5 extern inline int func1 (void) /* { dg-message "note: previous definition" } */
7 return 1;
10 inline int func1 (void) /* { dg-error "redefinition" } */
12 return 1;
15 inline int func2 (void) /* { dg-message "note: previous definition" } */
17 return 2;
20 inline int func2 (void) /* { dg-error "redefinition" } */
22 return 2;