mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 15:48:38 +00:00
Move the testcase elsewhere
llvm-svn: 8165
This commit is contained in:
parent
ccf9e52d5f
commit
8b65c87099
@ -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…
Reference in New Issue
Block a user