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