From 8b65c87099de909f0d2229f8bda417e66785ae37 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 27 Aug 2003 19:06:04 +0000 Subject: [PATCH] Move the testcase elsewhere llvm-svn: 8165 --- .../C++Frontend/EH/copy_ctor_throw.cpp | 25 ------------------- 1 file changed, 25 deletions(-) delete mode 100644 test/Regression/C++Frontend/EH/copy_ctor_throw.cpp diff --git a/test/Regression/C++Frontend/EH/copy_ctor_throw.cpp b/test/Regression/C++Frontend/EH/copy_ctor_throw.cpp deleted file mode 100644 index 1c50984ad2e..00000000000 --- a/test/Regression/C++Frontend/EH/copy_ctor_throw.cpp +++ /dev/null @@ -1,25 +0,0 @@ -/* Test for throwing an exception from the copy ctor of the exception object - * invoked while building an exception. - */ -#include - -struct foo { - foo() {} - foo(const foo &F) { throw 1; } -}; - -int main() { - try { - foo f; - throw f; - } catch (int i) { - printf("Success!\n"); - return 0; - } catch (foo &f) { - printf("Failure: caught a foo!\n"); - return 1; - } catch (...) { - printf("Failure: caught something else!\n"); - return 1; - } -}