From: Jonathan Wakely Date: Mon, 24 Aug 2020 15:06:25 +0000 (+0100) Subject: libstdc++: Fix 30_threads/packaged_task/cons/alloc.cc regression X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ac4e9090fce653ba7a43ea5333efdd9bbe5c71a3;p=gcc.git 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 --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.