* g++.dg/cpp0x/range-for9.C: Adjust dg-error.
authorMarek Polacek <polacek@redhat.com>
Thu, 7 Jun 2018 14:18:27 +0000 (14:18 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 7 Jun 2018 14:18:27 +0000 (14:18 +0000)
From-SVN: r261278

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/range-for9.C

index 440c8ce3e3d074b3a8f904e6aae675d0ff4041e9..691d233e3b7609e985ce05b37a800cb10125f522 100644 (file)
@@ -1,3 +1,7 @@
+2018-06-07  Marek Polacek  <polacek@redhat.com>
+
+       * g++.dg/cpp0x/range-for9.C: Adjust dg-error.
+
 2018-06-07  Olga Makhotina  <olga.makhotina@intel.com>
 
        * gcc.target/i386/funcspec-56.inc: Test arch=tremont.
index 6a50ec36c14175de8409b631598b061dfe346080..eaa5b4068800959be02026a061f9187839a8c6db 100644 (file)
@@ -5,6 +5,6 @@
 void test()
 {
     int a[] = {0,1,2};
-    for (int x : a)  // { dg-error "range-based 'for'" }
+    for (int x : a)  // { dg-error "range-based 'for'|forming reference" }
         ;
 }