1 // RUN: %clang_cc1 -fcxx-exceptions -fexceptions -Wno-unreachable-code -Werror -triple x86_64-linux-gnu -emit-llvm -o - %s | FileCheck %s
9 return val ? throw val : val;
12 // rdar://problem/8608801
19 return 1 ? throw val : val;
23 int test5(bool x, bool y, int z) {
24 return (x ? throw 1 : y) ? z : throw 2;
26 // CHECK: define i32 @_Z5test5bbi(
30 // CHECK: call void @__cxa_throw(
31 // CHECK-NEXT: unreachable
41 // CHECK: call void @__cxa_throw(
42 // CHECK-NEXT: unreachable