1 // RUN: %clang_cc1 -triple %itanium_abi_triple -fcxx-exceptions -fexceptions -emit-llvm-only %s
2 
3 // PR5863
4 class E { };
5 
P1()6 void P1() {
7  try {
8   int a=0, b=0;
9   if (a > b) // simply filling in 0 or 1 doesn't trigger the assertion
10     throw E(); // commenting out 'if' or 'throw' 'fixes' the assertion failure
11   try { } catch (...) { } // empty try/catch block needed for failure
12  } catch (...) { } // this try/catch block needed for failure
13 }
14