OSDN Git Service

Fix PR40886.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / Werror-4.c
index 45d217b..272f123 100644 (file)
@@ -3,15 +3,15 @@
 
 /* Make sure the pragma enables the error.  */
 
-#pragma GCC diagnostic error "-Walways-true"
+#pragma GCC diagnostic error "-Waddress"
 
-void __attribute__((dj)) bar() { }     /* { dg-warning "warning: .* attribute directive ignored" } */
+void __attribute__((dj)) bar() { }     /* { dg-warning ".* attribute directive ignored" } */
 
 int i;
 
 void
 foo ()
 {
-  if (&i)      /* { dg-error "error: .* will always evaluate as 'true'" } */
+  if (&i)      /* { dg-error ".* will always evaluate as 'true'" } */
     grill ();
 }