diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2020-12-01 10:36:09 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2020-12-01 10:37:38 +0000 |
commit | 58f71a34c68711c4432b45086bfcccb78be7ace5 (patch) | |
tree | f2e69f05d8c074943a019f122ee72a1b3a1ceb7a /libstdc++-v3 | |
parent | 55419d8730e4b3cedea318c18d5a69ba0219bda0 (diff) | |
download | gcc-58f71a34c68711c4432b45086bfcccb78be7ace5.zip gcc-58f71a34c68711c4432b45086bfcccb78be7ace5.tar.gz gcc-58f71a34c68711c4432b45086bfcccb78be7ace5.tar.bz2 |
libstdc++: Link test with libatomic if needed [PR 98003]
libstdc++-v3/ChangeLog:
PR libstdc++/98003
* testsuite/27_io/basic_syncbuf/sync_ops/1.cc: Add options for
libatomic.
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/testsuite/27_io/basic_syncbuf/sync_ops/1.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/27_io/basic_syncbuf/sync_ops/1.cc b/libstdc++-v3/testsuite/27_io/basic_syncbuf/sync_ops/1.cc index 90d20f1..a224e0c 100644 --- a/libstdc++-v3/testsuite/27_io/basic_syncbuf/sync_ops/1.cc +++ b/libstdc++-v3/testsuite/27_io/basic_syncbuf/sync_ops/1.cc @@ -15,11 +15,12 @@ // with this library; see the file COPYING3. If not see // <http://www.gnu.org/licenses/>. -// { dg-options "-std=gnu++2a -pthread" } +// { dg-options "-std=gnu++2a" } // { dg-do run { target c++2a } } -// { dg-require-effective-target pthread } // { dg-require-effective-target cxx11-abi } // { dg-require-gthreads "" } +// { dg-add-options libatomic } +// { dg-additional-options "-pthread" { target pthread } } #include <algorithm> #include <atomic> |