Fix all tests that fail with -sanitize=return.
[official-gcc.git] / gcc / testsuite / g++.dg / tree-ssa / pr41906.C
blob321d33aeace98206234b8b092e337da1a570a01d
1 /* { dg-do compile } */
2 /* { dg-options "-fpermissive -w" } */
3 /* We aren't interested in the warning, but in the ICE.  */
4 void foo();
5 extern void abort (void);
7 void bar()
9   try { foo(); }
10   catch (...) {}
11   catch (int) {abort ();}