summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/crash48.C
blob: 45415484b4ad2acb21a29e6488198281a33382df (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 "expected type-specifier before" }
}