c++: Fix g++.dg/parse/attr4.C test.
authorMarek Polacek <polacek@redhat.com>
Wed, 13 May 2020 16:06:04 +0000 (12:06 -0400)
committerMarek Polacek <polacek@redhat.com>
Wed, 13 May 2020 16:06:04 +0000 (12:06 -0400)
I noticed this test failing in C++11 mode.

* g++.dg/parse/attr4.C: Use c++11 in a target selector.

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/attr4.C

index 76b14d3c11b24d0df2294e0e6336ef6bc1e45c6a..c44603a70455c4c27b01fa053b5a8dd75d8b52f2 100644 (file)
@@ -1,3 +1,7 @@
+2020-05-13  Marek Polacek  <polacek@redhat.com>
+
+       * g++.dg/parse/attr4.C: Use c++11 in a target selector.
+
 2020-05-13  Mark Eggleston  <markeggleston@gcc.gnu.org>
 
        PR fortran/93497
index 160c33e2625ce237ecf7109ab3e5a3cd4da98c8d..36ebdbd0bae11199744f0aed6df1b0a600a2cb2b 100644 (file)
@@ -1,4 +1,4 @@
 // PR c++/93684 - ICE-on-invalid with broken attribute.
 
 [[a:: // { dg-error "expected" }
-  // { dg-error "-:expected" "" { target c++14 } .+1 }
+  // { dg-error "-:expected" "" { target c++11 } .+1 }