blob: 50d17314cb49b074c83affdfbe37dad48a8517ee [file] [log] [blame]
Hans Wennborgc9bd88e2014-01-14 19:35:09 +00001// RUN: %clang_cc1 -triple %itanium_abi_triple -fcxx-exceptions -fexceptions -emit-llvm-only %s
Benjamin Kramer11d4d9e2010-05-23 20:00:44 +00002
Benjamin Kramerdc999652010-05-23 20:57:46 +00003// PR5863
Benjamin Kramer11d4d9e2010-05-23 20:00:44 +00004class 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 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}