Merge from mainline
[official-gcc.git] / gcc / testsuite / g++.dg / eh / cond3.C
blob0af4ecdad969b35e6c9693768c51cedd4df9cf78
1 // PR c++/24996
2 // Bug: the cleanup for the A temporary was confusing the gimplifier
3 // because of the TRY_CATCH_EXPR for the exception object.
5 struct A { A(int); ~A(); };
6 struct B { B(A); ~B(); };
7 void foo(bool b)
9   throw b ? B(1) : B(1);