blob: 34c46812c1858dd9b2ad1a036c5212c9952ccd74 [file] [log] [blame] [edit]
#include <stdio.h>
int throws() {
printf("Throwing int\n");
throw 16;
};
int callsthrows() {
try {
throws();
} catch (...) {
printf("Caught something, rethrowing...\n");
throw;
}
}
int main() {
try {
callsthrows();
} catch (int i) {
printf("Caught int: %d\n", i);
return i-16;
}
return 1;
}