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

template<int> void foo()
{
  try {}
  catch () {}  // { dg-error "type-specifier" }
}

template void foo<0>();