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

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