libstdc++: Fix 30_threads/packaged_task/cons/alloc.cc regression
authorJonathan Wakely <jwakely@redhat.com>
Mon, 24 Aug 2020 15:06:25 +0000 (16:06 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 24 Aug 2020 15:07:12 +0000 (16:07 +0100)
libstdc++-v3/ChangeLog:

* testsuite/30_threads/packaged_task/cons/alloc.cc: Run for
C++11 and skip for C++17 or later.

libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc.cc

index dbe477ad1bf56ef283a8be784ec53a7b1c26d27b..d45637d4f837a0fb0e014a939aaecd86f35a2a9c 100644 (file)
@@ -1,6 +1,6 @@
-// { dg-do run }
+// { dg-options "-std=gnu++11" }
+// { dg-do run { target { c++11_only || c++14_only } } }
 // { dg-additional-options "-pthread" { target pthread } }
-// { dg-require-effective-target c++11 }
 // { dg-require-gthreads "" }
 
 // Copyright (C) 2010-2020 Free Software Foundation, Inc.