summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/eh/defarg1.C
blob: 5c6e4df494937d39a4ba951cdc060a15929ceb35 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/50424
// { dg-do run }

int f() { throw 1; }
void g( int = f() ) { }
void h() { g(); }
int main()
{
  try { h(); } catch (int) { }
}