summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/eh/catch2.C
blob: 33db946490a63f1c3ccc8f1308d5e7d7ec25befb (plain)
1
2
3
4
5
6
7
8
9
// PR c++/28250
// { dg-do compile }

void foo()
{
  try {}
  catch () {}  // { dg-error "before" }
  catch (...) {}
}