* testsuite/libgomp.fortran/vla7.f90: Add -w to options.
[official-gcc.git] / gcc / testsuite / gcc.dg / Werror-8.c
blobec70a2e8eab8b6f7dade4e1a965f036f05060ece
1 /* { dg-do compile } */
2 /* { dg-options "-Wattributes" } */
4 /* Make sure #pragma can enable a warning. */
6 #pragma GCC diagnostic warning "-Walways-true"
8 void __attribute__((dj)) bar() { } /* { dg-warning "warning: .* attribute directive ignored" } */
10 int i;
12 void
13 foo ()
15 if (&i) /* { dg-warning "warning: .* will always evaluate as 'true'" } */
16 grill ();