14 lines · cpp
1// RUN: %clang_cc1 -triple %itanium_abi_triple -fcxx-exceptions -fexceptions -emit-llvm-only %s2 3// PR58634class E { };5 6void P1() {7 try {8 int a=0, b=0;9 if (a > b) // simply filling in 0 or 1 doesn't trigger the assertion10 throw E(); // commenting out 'if' or 'throw' 'fixes' the assertion failure11 try { } catch (...) { } // empty try/catch block needed for failure12 } catch (...) { } // this try/catch block needed for failure13}14