1 // RUN: %clang_cc1 -fcxx-exceptions -fexceptions -emit-llvm-only -verify %s -Wno-unreachable-code 2 // expected-no-diagnostics 3 4 int val = 42; 5 int& test1() { 6 return throw val, val; 7 } 8 9 int test2() { 10 return val ? throw val : val; 11 } 12 13 // rdar://problem/8608801 14 void test3() { 15 throw false; 16 } 17 18 // PR10582 19 int test4() { 20 return 1 ? throw val : val; 21 } 22