[gcc(refs/users/aoliva/heads/testbase)] libstdc++: Fix 30_threads/packaged_task/cons/alloc.cc regression

Alexandre Oliva aoliva@gcc.gnu.org
Tue Aug 25 10:13:12 GMT 2020


https://gcc.gnu.org/g:ac4e9090fce653ba7a43ea5333efdd9bbe5c71a3

commit ac4e9090fce653ba7a43ea5333efdd9bbe5c71a3
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Mon Aug 24 16:06:25 2020 +0100

    libstdc++: Fix 30_threads/packaged_task/cons/alloc.cc regression
    
    libstdc++-v3/ChangeLog:
    
            * testsuite/30_threads/packaged_task/cons/alloc.cc: Run for
            C++11 and skip for C++17 or later.

Diff:
---
 libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc.cc
index dbe477ad1bf..d45637d4f83 100644
--- a/libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc.cc
+++ b/libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc.cc
@@ -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.


More information about the Libstdc++-cvs mailing list