From 53992adde3eda3ccf9da63bc7e45673f043de18f Mon Sep 17 00:00:00 2001 From: rdivacky <rdivacky@FreeBSD.org> Date: Thu, 27 May 2010 15:17:06 +0000 Subject: Update clang to r104832. --- test/CodeGenCXX/PR5863-unreachable-block.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/CodeGenCXX/PR5863-unreachable-block.cpp (limited to 'test/CodeGenCXX/PR5863-unreachable-block.cpp') diff --git a/test/CodeGenCXX/PR5863-unreachable-block.cpp b/test/CodeGenCXX/PR5863-unreachable-block.cpp new file mode 100644 index 0000000..7709615 --- /dev/null +++ b/test/CodeGenCXX/PR5863-unreachable-block.cpp @@ -0,0 +1,13 @@ +// RUN: %clang_cc1 -emit-llvm-only %s + +// PR5863 +class E { }; + +void P1() { + try { + int a=0, b=0; + if (a > b) // simply filling in 0 or 1 doesn't trigger the assertion + throw E(); // commenting out 'if' or 'throw' 'fixes' the assertion failure + try { } catch (...) { } // empty try/catch block needed for failure + } catch (...) { } // this try/catch block needed for failure +} -- cgit v1.1