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 | 9e911389a4edd68f780c3c9701a317d979a3e45c (patch) | |
| tree | 55a796434e97a1ba8d3983e253bce2d2fd5bd38b | |
| parent | 7c95d2ffb9ca1d79b5a0726617d109a3f814623d (diff) | |
| download | bcm5719-llvm-9e911389a4edd68f780c3c9701a317d979a3e45c.tar.gz bcm5719-llvm-9e911389a4edd68f780c3c9701a317d979a3e45c.zip | |
Move the testcase elsewhere
llvm-svn: 8165
| -rw-r--r-- | llvm/test/Regression/C++Frontend/EH/copy_ctor_throw.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/llvm/test/Regression/C++Frontend/EH/copy_ctor_throw.cpp b/llvm/test/Regression/C++Frontend/EH/copy_ctor_throw.cpp deleted file mode 100644 index 1c50984ad2e..00000000000 --- a/llvm/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 <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; - } -} |

