summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tree-ssa/pr41906.C
blob: 321d33aeace98206234b8b092e337da1a570a01d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-fpermissive -w" } */
/* We aren't interested in the warning, but in the ICE.  */
void foo();
extern void abort (void);

void bar()
{
  try { foo(); }
  catch (...) {}
  catch (int) {abort ();}
}