blob: 0fd32c44575bfe395d3df498864a36a9d68b586d [file] [log] [blame]
Anders Carlssonabea9512011-02-28 00:40:07 +00001// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -emit-llvm-only -verify %s -Wno-unreachable-code
Eli Friedman48daf592009-12-07 20:25:53 +00002
3int val = 42;
4int& test1() {
5 return throw val, val;
6}
7
8int test2() {
9 return val ? throw val : val;
10}
John McCall14e1bc92010-10-29 08:14:02 +000011
12// rdar://problem/8608801
13void test3() {
14 throw false;
15}