2007-02-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / Werror-7.c
blob6a69fae4ded0e8c9b6142b2a4b41bb11a819d9e6
1 /* { dg-do compile } */
2 /* { dg-options "-Waddress -Werror -Wno-error=address -Wattributes" } */
3 /* { dg-warning "warnings being treated as errors" "" {target "*-*-*"} 0 } */
5 /* Make sure -Wno-error= overrides -Werror. */
7 void __attribute__((dj)) bar() { } /* { dg-error "error: .* attribute directive ignored" } */
9 int i;
11 void
12 foo ()
14 if (&i) /* { dg-warning "warning: .* will always evaluate as 'true'" } */
15 grill ();