aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-06-17 11:09:54 -0700
committerDan Albert <danalbert@google.com>2015-06-17 14:15:22 -0700
commitf378ebf14df0952eae870c9865bab8326aa8f137 (patch)
tree31794503eb2a8c64ea5f313b93100f1163afcffb /gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex
parent2c58169824949d3a597d9fa81931e001ef9b1bd0 (diff)
downloadtoolchain_gcc-f378ebf14df0952eae870c9865bab8326aa8f137.tar.gz
toolchain_gcc-f378ebf14df0952eae870c9865bab8326aa8f137.tar.bz2
toolchain_gcc-f378ebf14df0952eae870c9865bab8326aa8f137.zip
Delete old versions of GCC.
Change-Id: I710f125d905290e1024cbd67f48299861790c66c
Diffstat (limited to 'gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex')
-rw-r--r--gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/cons/1.cc49
-rw-r--r--gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/cons/assign_neg.cc36
-rw-r--r--gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/cons/copy_neg.cc35
-rw-r--r--gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/dest/destructor_locked.cc51
-rw-r--r--gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/lock/1.cc63
-rw-r--r--gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/native_handle/1.cc51
-rw-r--r--gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/native_handle/typesizes.cc33
-rw-r--r--gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/requirements/standard_layout.cc31
-rw-r--r--gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/requirements/typedefs.cc32
-rw-r--r--gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/try_lock/1.cc52
-rw-r--r--gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/try_lock/2.cc63
-rw-r--r--gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/unlock/1.cc52
12 files changed, 0 insertions, 548 deletions
diff --git a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/cons/1.cc b/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/cons/1.cc
deleted file mode 100644
index b743b9980..000000000
--- a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/cons/1.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* } }
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* } }
-// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
-// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
-// { dg-require-cstdint "" }
-// { dg-require-gthreads "" }
-
-// Copyright (C) 2008, 2009 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
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 3, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING3. If not see
-// <http://www.gnu.org/licenses/>.
-
-
-#include <mutex>
-#include <system_error>
-#include <testsuite_hooks.h>
-
-int main()
-{
- bool test __attribute__((unused)) = true;
- typedef std::mutex mutex_type;
-
- try
- {
- mutex_type m1;
- }
- catch (const std::system_error& e)
- {
- VERIFY( false );
- }
- catch (...)
- {
- VERIFY( false );
- }
-
- return 0;
-}
diff --git a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/cons/assign_neg.cc b/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/cons/assign_neg.cc
deleted file mode 100644
index 078cffcea..000000000
--- a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/cons/assign_neg.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++0x" }
-// { dg-require-cstdint "" }
-// { dg-require-gthreads "" }
-
-// Copyright (C) 2008, 2009 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
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 3, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING3. If not see
-// <http://www.gnu.org/licenses/>.
-
-
-#include <mutex>
-
-void test01()
-{
- // assign
- typedef std::mutex mutex_type;
- mutex_type m1;
- mutex_type m2;
- m1 = m2;
-}
-
-// { dg-error "used here" "" { target *-*-* } 32 }
-// { dg-error "deleted function" "" { target *-*-* } 83 }
diff --git a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/cons/copy_neg.cc b/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/cons/copy_neg.cc
deleted file mode 100644
index e13a0f6cf..000000000
--- a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/cons/copy_neg.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++0x" }
-// { dg-require-cstdint "" }
-// { dg-require-gthreads "" }
-
-// Copyright (C) 2008, 2009 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
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 3, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING3. If not see
-// <http://www.gnu.org/licenses/>.
-
-
-#include <mutex>
-
-void test01()
-{
- // assign
- typedef std::mutex mutex_type;
- mutex_type m1;
- mutex_type m2(m1);
-}
-
-// { dg-error "used here" "" { target *-*-* } 31 }
-// { dg-error "deleted function" "" { target *-*-* } 82 }
diff --git a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/dest/destructor_locked.cc b/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/dest/destructor_locked.cc
deleted file mode 100644
index ee0ddd8f2..000000000
--- a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/dest/destructor_locked.cc
+++ /dev/null
@@ -1,51 +0,0 @@
-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* } }
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* } }
-// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
-// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
-// { dg-require-cstdint "" }
-// { dg-require-gthreads "" }
-
-// Copyright (C) 2008, 2009 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
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 3, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING3. If not see
-// <http://www.gnu.org/licenses/>.
-
-
-#include <mutex>
-#include <system_error>
-#include <testsuite_hooks.h>
-
-int main()
-{
- bool test __attribute__((unused)) = true;
- typedef std::mutex mutex_type;
-
- try
- {
- mutex_type m;
- m.lock();
- }
- catch (const std::system_error& e)
- {
- // Destroying locked mutex raises system error, or undefined.
- // POSIX == may fail with EBUSY.
- }
- catch (...)
- {
- VERIFY( false );
- }
-
- return 0;
-}
diff --git a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/lock/1.cc b/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/lock/1.cc
deleted file mode 100644
index 6c4a0a0d3..000000000
--- a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/lock/1.cc
+++ /dev/null
@@ -1,63 +0,0 @@
-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* } }
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* } }
-// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
-// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
-// { dg-require-cstdint "" }
-// { dg-require-gthreads "" }
-
-// Copyright (C) 2008, 2009 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
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 3, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING3. If not see
-// <http://www.gnu.org/licenses/>.
-
-
-#include <mutex>
-#include <system_error>
-#include <testsuite_hooks.h>
-
-int main()
-{
- bool test __attribute__((unused)) = true;
- typedef std::mutex mutex_type;
-
- try
- {
- mutex_type m;
- m.lock();
-
- // Lock already locked mutex.
- try
- {
- // XXX Will block.
- // m.lock();
- }
- catch (const std::system_error& e)
- {
- VERIFY( false );
- }
-
- m.unlock();
- }
- catch (const std::system_error& e)
- {
- VERIFY( false );
- }
- catch (...)
- {
- VERIFY( false );
- }
-
- return 0;
-}
diff --git a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/native_handle/1.cc b/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/native_handle/1.cc
deleted file mode 100644
index d1700e3d3..000000000
--- a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/native_handle/1.cc
+++ /dev/null
@@ -1,51 +0,0 @@
-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* } }
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* } }
-// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
-// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
-// { dg-require-cstdint "" }
-// { dg-require-gthreads "" }
-
-// Copyright (C) 2008, 2009 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
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 3, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING3. If not see
-// <http://www.gnu.org/licenses/>.
-
-
-#include <mutex>
-#include <system_error>
-#include <testsuite_hooks.h>
-
-int main()
-{
- bool test __attribute__((unused)) = true;
- typedef std::mutex mutex_type;
-
- try
- {
- mutex_type m;
- mutex_type::native_handle_type n = m.native_handle();
- (void)n;
- }
- catch (const std::system_error& e)
- {
- VERIFY( false );
- }
- catch (...)
- {
- VERIFY( false );
- }
-
- return 0;
-}
diff --git a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/native_handle/typesizes.cc b/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/native_handle/typesizes.cc
deleted file mode 100644
index 44349acb6..000000000
--- a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/native_handle/typesizes.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* } }
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* } }
-// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
-// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
-// { dg-require-cstdint "" }
-// { dg-require-gthreads "" }
-
-// Copyright (C) 2009 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
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 3, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING3. If not see
-// <http://www.gnu.org/licenses/>.
-
-#include <mutex>
-#include <thread/all.h>
-
-int main()
-{
- typedef std::mutex test_type;
- __gnu_test::compare_type_to_native_type<test_type>();
- return 0;
-}
diff --git a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/requirements/standard_layout.cc b/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/requirements/standard_layout.cc
deleted file mode 100644
index fae21013c..000000000
--- a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/requirements/standard_layout.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++0x" }
-// { dg-require-cstdint "" }
-// { dg-require-gthreads "" }
-
-// Copyright (C) 2009 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
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 3, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING3. If not see
-// <http://www.gnu.org/licenses/>.
-
-
-#include <mutex>
-#include <testsuite_common_types.h>
-
-void test01()
-{
- __gnu_test::standard_layout test;
- test.operator()<std::mutex>();
-}
diff --git a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/requirements/typedefs.cc b/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/requirements/typedefs.cc
deleted file mode 100644
index 662831dad..000000000
--- a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/requirements/typedefs.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++0x" }
-// { dg-require-cstdint "" }
-// { dg-require-gthreads "" }
-// 2008-03-18 Benjamin Kosnik <bkoz@redhat.com>
-
-// Copyright (C) 2008, 2009 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
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 3, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING3. If not see
-// <http://www.gnu.org/licenses/>.
-
-
-#include <mutex>
-
-void test01()
-{
- // Check for required typedefs
- typedef std::mutex test_type;
- typedef test_type::native_handle_type type;
-}
diff --git a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/try_lock/1.cc b/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/try_lock/1.cc
deleted file mode 100644
index 5a3589c20..000000000
--- a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/try_lock/1.cc
+++ /dev/null
@@ -1,52 +0,0 @@
-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* } }
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* } }
-// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
-// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
-// { dg-require-cstdint "" }
-// { dg-require-gthreads "" }
-
-// Copyright (C) 2008, 2009 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
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 3, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING3. If not see
-// <http://www.gnu.org/licenses/>.
-
-
-#include <mutex>
-#include <system_error>
-#include <testsuite_hooks.h>
-
-int main()
-{
- bool test __attribute__((unused)) = true;
- typedef std::mutex mutex_type;
-
- try
- {
- mutex_type m;
- bool b = m.try_lock();
- VERIFY( b );
- m.unlock();
- }
- catch (const std::system_error& e)
- {
- VERIFY( false );
- }
- catch (...)
- {
- VERIFY( false );
- }
-
- return 0;
-}
diff --git a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/try_lock/2.cc b/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/try_lock/2.cc
deleted file mode 100644
index ab5cf7c0e..000000000
--- a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/try_lock/2.cc
+++ /dev/null
@@ -1,63 +0,0 @@
-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* } }
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* } }
-// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
-// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
-// { dg-require-cstdint "" }
-// { dg-require-gthreads "" }
-
-// Copyright (C) 2008, 2009 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
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 3, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING3. If not see
-// <http://www.gnu.org/licenses/>.
-
-
-#include <mutex>
-#include <system_error>
-#include <testsuite_hooks.h>
-
-int main()
-{
- bool test __attribute__((unused)) = true;
- typedef std::mutex mutex_type;
-
- try
- {
- mutex_type m;
- m.lock();
- bool b;
-
- try
- {
- b = m.try_lock();
- VERIFY( !b );
- }
- catch (const std::system_error& e)
- {
- VERIFY( false );
- }
-
- m.unlock();
- }
- catch (const std::system_error& e)
- {
- VERIFY( false );
- }
- catch (...)
- {
- VERIFY( false );
- }
-
- return 0;
-}
diff --git a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/unlock/1.cc b/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/unlock/1.cc
deleted file mode 100644
index 228f2bcdb..000000000
--- a/gcc-4.4.3/libstdc++-v3/testsuite/30_threads/mutex/unlock/1.cc
+++ /dev/null
@@ -1,52 +0,0 @@
-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* mips-sgi-irix6* } }
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* mips-sgi-irix6* } }
-// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
-// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
-// { dg-require-cstdint "" }
-// { dg-require-gthreads "" }
-
-// Copyright (C) 2008, 2009 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
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 3, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-// You should have received a copy of the GNU General Public License along
-// with this library; see the file COPYING3. If not see
-// <http://www.gnu.org/licenses/>.
-
-
-#include <mutex>
-#include <system_error>
-#include <testsuite_hooks.h>
-
-int main()
-{
- bool test __attribute__((unused)) = true;
- typedef std::mutex mutex_type;
-
- try
- {
- // Unlock mutex that hasn't been locked.
- mutex_type m;
- m.unlock();
- }
- catch (const std::system_error& e)
- {
- // POSIX == EPERM
- VERIFY( true );
- }
- catch (...)
- {
- VERIFY( false );
- }
-
- return 0;
-}