X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=libstdc%2B%2B-v3%2Ftestsuite%2F30_threads%2Flock%2F4.cc;h=7ba15cba84b49e7d3c04be99eb94cd35d7582d07;hb=99dee82307f1e163e150c9c810452979994047ce;hp=a12d6276284dfe4ac41dfd03a4c38d3dfa7fbc77;hpb=71c54f8ea2d79dad967720b67fbeb720566b8b79;p=thirdparty%2Fgcc.git diff --git a/libstdc++-v3/testsuite/30_threads/lock/4.cc b/libstdc++-v3/testsuite/30_threads/lock/4.cc index a12d6276284d..7ba15cba84b4 100644 --- a/libstdc++-v3/testsuite/30_threads/lock/4.cc +++ b/libstdc++-v3/testsuite/30_threads/lock/4.cc @@ -1,10 +1,9 @@ -// { dg-do run { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-rtems* *-*-darwin* powerpc-ibm-aix* } } -// { dg-options "-pthread" { target *-*-freebsd* *-*-dragonfly* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* powerpc-ibm-aix* } } +// { dg-do run } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-cstdint "" } // { dg-require-gthreads "" } -// Copyright (C) 2010-2016 Free Software Foundation, Inc. +// Copyright (C) 2010-2021 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -38,7 +37,6 @@ struct unreliable_lock ~unreliable_lock() { - bool test __attribute__((unused)) = true; VERIFY( !l.owns_lock() ); } @@ -62,7 +60,6 @@ struct unreliable_lock void unlock() { - bool test __attribute__((unused)) = true; VERIFY( l.owns_lock() ); l.unlock(); } @@ -75,8 +72,6 @@ int unreliable_lock::lock_on = -1; void test01() { - bool test __attribute__((unused)) = true; - unreliable_lock l1, l2, l3; try @@ -96,8 +91,6 @@ void test01() void test02() { - bool test __attribute__((unused)) = true; - // test behaviour when a lock is already held try {