8sa1-gcc/gcc/testsuite/g++.old-deja/g++.mike/eh6.C
Jason Merrill 4495766362 fix implicit int
From-SVN: r23760
1998-11-22 18:23:45 -05:00

20 lines
299 B
C

// Special g++ Options: -fexceptions
// excess errors test - XFAIL a29k-*-* sparc64-*-elf sh-*-* arm-*-pe**-*
extern "C" int printf(const char *, ...);
void main1() {
throw 1;
}
int main() {
try {
main1();
} catch (...) {
printf("Unwind works!\n");
return 0;
}
return 1;
}