Fix c90-fordecl-1.c test
authorMarek Polacek <polacek@redhat.com>
Tue, 18 Jun 2013 10:39:52 +0000 (10:39 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 18 Jun 2013 10:39:52 +0000 (10:39 +0000)
From-SVN: r200166

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c90-fordecl-1.c

index a268ad2..743ae6c 100644 (file)
@@ -1,3 +1,7 @@
+2013-06-18  Marek Polacek  <polacek@redhat.com>
+
+       * gcc.dg/c90-fordecl-1.c: Adjust expected message.
+
 2013-06-17  Balaji V. Iyer  <balaji.v.iyer@intel.com>
 
        * c-c++-common/cilk-plus/AN/sec_reduce_ind_same_value.c: New test.
index 4aa3c58..51e82ff 100644 (file)
@@ -9,6 +9,6 @@ foo (void)
   int j = 0;
   for (int i = 1; i <= 10; i++) /* { dg-bogus "warning" "warning in place of error" } */
     j += i;
-  /* { dg-error "'for' loop initial declarations are only allowed in C99 mode" "declaration in for loop" { target *-*-* } 10 } */
-  /* { dg-message "note: use option -std=c99 or -std=gnu99 to compile your code" "note" { target *-*-* } 10 }} */
+  /* { dg-error "'for' loop initial declarations are only allowed in C99 or C11 mode" "declaration in for loop" { target *-*-* } 10 } */
+  /* { dg-message "note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code" "note" { target *-*-* } 10 }} */
 }