Mike Stump | 4617191 | 2010-01-23 20:12:18 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm-only -verify %s -Wno-unreachable-code |
Eli Friedman | 48daf59 | 2009-12-07 20:25:53 +0000 | [diff] [blame] | 2 | |
3 | int val = 42; | ||||
4 | int& test1() { | ||||
5 | return throw val, val; | ||||
6 | } | ||||
7 | |||||
8 | int test2() { | ||||
9 | return val ? throw val : val; | ||||
10 | } |