Adjust scan string for PIE
[official-gcc.git] / gcc / testsuite / gcc.dg / pr56167.c
blobfc377b4756bbab155060648dc4ac3ffac6fbeee6
1 /* PR middle-end/56167 */
2 /* { dg-do compile } */
4 extern void foo (void) __attribute__ ((error (0))); /* { dg-warning "attribute ignored" } */
5 extern void bar (void) __attribute__ ((warning (0))); /* { dg-warning "attribute ignored" } */
6 int var __attribute__ ((error ("foo"))); /* { dg-warning "attribute ignored" } */
8 int
9 main ()
11 foo ();
12 bar ();
13 var++;
14 return 0;