rt_gccstream/gcc/testsuite/g++.dg/eh/catch3.C

11 lines
149 B
C

// PR c++/28250
// { dg-do compile }
template<int> void foo()
{
try {}
catch () {} // { dg-error "type-specifier" }
}
template void foo<0>();