[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / PR5863-unreachable-block.cpp
blob50d17314cb49b074c83affdfbe37dad48a8517ee
1 // RUN: %clang_cc1 -triple %itanium_abi_triple -fcxx-exceptions -fexceptions -emit-llvm-only %s
3 // PR5863
4 class E { };
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