llvm-6502/test/C++Frontend/EH/simple_throw.cpp
2003-08-27 04:57:33 +00:00

14 lines
179 B
C++

// Test throwing a constant int
#include <stdio.h>
static void foo() { throw 5; }
int main() {
try {
foo();
} catch (...) {
printf("All ok\n");
return 0;
}
return 1;
}