diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-08-21 20:56:28 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-08-21 20:56:28 +0000 |
commit | e405ec65e3d665ec66e9356351e7da3e02dd8232 (patch) | |
tree | d26c297d6ff70523181fa0f3394c80d80d31daff | |
parent | c3d09d4da1e9d3d59cf01acc2c4e52c6c764f383 (diff) | |
download | gcc-e405ec65e3d665ec66e9356351e7da3e02dd8232.tar.gz |
revert accidental checkin of tests
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116312 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/g++.dg/abi/forced-sticky.C | 62 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/abi/forced.C | 25 |
2 files changed, 0 insertions, 87 deletions
diff --git a/gcc/testsuite/g++.dg/abi/forced-sticky.C b/gcc/testsuite/g++.dg/abi/forced-sticky.C deleted file mode 100644 index 0d31ee43547..00000000000 --- a/gcc/testsuite/g++.dg/abi/forced-sticky.C +++ /dev/null @@ -1,62 +0,0 @@ -// Test for "sticky cancel": if a catch (...) block discards the -// cancellation exception, a new one is raised at the next cancellation -// point. - -// This test only applies to glibc targets. -// { dg-do run { target *-*-linux* } } -// { dg-options "-pthread" } - -#include <pthread.h> -#include <cxxabi.h> -extern "C" int printf (const char *, ...); - -void* thread_main(void*) -{ - try - { - // Spin until we get cancelled. - while (1) - pthread_testcancel(); - } - catch (...) - { - // Catch and discard the forced unwind. - printf ("caught ...\n"); - } - - try - { - // Start unwinding again. - pthread_testcancel(); - } - catch (...) - { - // Catch and discard again. This time the thread exits before the - // next cancellation point, so we're done. - printf ("caught ... again\n"); - return 0; - } - - return (void*)4; -} - -int main() -{ - pthread_t thread; - int r; - void *p; - - r = pthread_create (&thread, NULL, thread_main, NULL); - if (r) - return 1; - - r = pthread_cancel (thread); - if (r) - return 2; - - r = pthread_join (thread, &p); - if (r) - return 3; - - return (int)p; -} diff --git a/gcc/testsuite/g++.dg/abi/forced.C b/gcc/testsuite/g++.dg/abi/forced.C deleted file mode 100644 index 7a9c35964f7..00000000000 --- a/gcc/testsuite/g++.dg/abi/forced.C +++ /dev/null @@ -1,25 +0,0 @@ -// This test only applies to glibc (NPTL) targets. -// { dg-do run { target *-*-linux* } } -// { dg-options "-pthread" } - -#include <pthread.h> -#include <cxxabi.h> -extern "C" int printf (const char *, ...); - -int main() -{ - try - { - pthread_exit (0); - } - catch (abi::__forced_unwind &) - { - printf ("caught forced unwind\n"); - throw; - } - catch (...) - { - printf ("caught ...\n"); - return 1; - } -} |