PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / Werror-8.c
blob9698593a2fe7ddae42bdc9c66d8bf85101b9b68b
1 /* { dg-do compile } */
2 /* { dg-options "-Wattributes" } */
4 /* Make sure #pragma can enable a warning. */
6 #pragma GCC diagnostic warning "-Waddress"
8 void grill ();
9 void __attribute__((dj)) bar() { } /* { dg-warning ".* attribute directive ignored" } */
11 int i;
13 void
14 foo ()
16 if (&i) /* { dg-warning ".* will always evaluate as 'true'" } */
17 grill ();