diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.mike/eh48.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.mike/eh48.C | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/eh48.C b/gcc/testsuite/g++.old-deja/g++.mike/eh48.C deleted file mode 100644 index 351fc4f60a8..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.mike/eh48.C +++ /dev/null @@ -1,32 +0,0 @@ -// Special g++ Options: -fexceptions -// excess errors test - XFAIL a29k-*-* sparc64-*-elf sh-*-* arm-*-pe**-* - -#include <exception> -using std::uncaught_exception; -class A { -public: - ~A() { - if (uncaught_exception ()) - exit (0); - } -}; - -int main() { - if (uncaught_exception ()) - return 1; - try { - throw ""; - } catch (...) { - if (uncaught_exception ()) - return 1; - } - if (uncaught_exception ()) - return 1; - try { - A a; - throw ""; - } catch (...) { - return 1; - } - return 1; -} |