summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/crash55.C
blob: 7676d49bcd9fe54ac4cce94e55605a8557d457e6 (plain)
1
2
3
4
5
6
7
8
// PR c++/42038

extern int __cxa_begin_catch;

void f(void)
{
  try { } catch (int) { } // { dg-error "cannot be used" }
}