* testsuite/libgomp.fortran/vla7.f90: Add -w to options.
[official-gcc.git] / gcc / testsuite / gcc.dg / Werror-7.c
blobe6671991f5a2d73f299af7d2fda80446812986a4
1 /* { dg-do compile } */
2 /* { dg-options "-Walways-true -Werror -Wno-error=always-true -Wattributes" } */
3 /* { dg-warning "warnings being treated as errors" "" {target "*-*-*"} 0 } */
5 /* Make sure -Wno-error= overrides -Werror. */
7 void __attribute__((dj)) bar() { } /* { dg-warning "warning: .* attribute directive ignored" } */
9 int i;
11 void
12 foo ()
14 if (&i) /* { dg-warning "warning: .* will always evaluate as 'true'" } */
15 grill ();