OSDN Git Service

2010-02-10 Joost VandeVondele <jv244@cam.ac.uk>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / Werror-5.c
index 3912590..c03fc3b 100644 (file)
@@ -1,16 +1,16 @@
 /* { dg-do compile } */
-/* { dg-options "-Walways-true -Wattributes -Werror" } */
-/* { dg-warning "warnings being treated as errors" "" {target "*-*-*"} 0 } */
+/* { dg-options "-Waddress -Wattributes -Werror" } */
+/* { dg-message "warnings being treated as errors" "" {target "*-*-*"} 0 } */
 
 /* Make sure -Werror turns warnings in to errors.  */
 
-void __attribute__((dj)) bar() { }     /* { dg-warning "warning: .* attribute directive ignored" } */
+void __attribute__((dj)) bar() { }     /* { dg-error ".* attribute directive ignored" } */
 
 int i;
 
 void
 foo ()
 {
-  if (&i)      /* { dg-warning "warning: .* will always evaluate as 'true'" } */
+  if (&i)      /* { dg-error ".* will always evaluate as 'true'" } */
     grill ();
 }