gcc/testsuite/g++.dg/parse/crash55.C
raw| 1 | // PR c++/42038 |
| 2 | |
| 3 | // Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'. |
| 4 | |
| 5 | extern int __cxa_begin_catch; // { dg-message "previous declaration" } |
| 6 | |
| 7 | void f(void) |
| 8 | { |
| 9 | try { } catch (int) { } // { dg-error "redeclared" } |
| 10 | } |