mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
Move the testcase elsewhere
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8165 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bb3dd47d8f
commit
ff7dcb0234
@ -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;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user