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

void foo()
{
  try { throw; }
  catch () {}  // { dg-error "type-specifier" }
}