diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-27 19:06:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-27 19:06:04 +0000 |
commit | ff7dcb02342fdbf191e3d27af3342791a497ab7c (patch) | |
tree | c732bfd95b26ecd7f5e2b8bfd786a7a473f64c08 | |
parent | bb3dd47d8f8496c0ee0e2bd257826e23a21e973a (diff) | |
download | external_llvm-ff7dcb02342fdbf191e3d27af3342791a497ab7c.zip external_llvm-ff7dcb02342fdbf191e3d27af3342791a497ab7c.tar.gz external_llvm-ff7dcb02342fdbf191e3d27af3342791a497ab7c.tar.bz2 |
Move the testcase elsewhere
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8165 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/C++Frontend/EH/copy_ctor_throw.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/test/C++Frontend/EH/copy_ctor_throw.cpp b/test/C++Frontend/EH/copy_ctor_throw.cpp deleted file mode 100644 index 1c50984..0000000 --- a/test/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 <stdio.h> - -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; - } -} |