]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGenCXX/PR5863-unreachable-block.cpp
Update clang to r104832.
[FreeBSD/FreeBSD.git] / test / CodeGenCXX / PR5863-unreachable-block.cpp
1 // RUN: %clang_cc1 -emit-llvm-only %s
2
3 // PR5863
4 class E { };
5
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 }