aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/parse/crash48.C
blob: 020ddf079acb33f947e15253d4a32f00a0590553 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/37530
// { dg-do compile }

void
foo (bool b)
{
  if (b)
    try { throw 0; } catch (X) { }	// { dg-error "type" }
}