diff options
Diffstat (limited to 'test/CodeGenCXX/throw-expressions.cpp')
-rw-r--r-- | test/CodeGenCXX/throw-expressions.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/CodeGenCXX/throw-expressions.cpp b/test/CodeGenCXX/throw-expressions.cpp index 1670e4450237..1d22ec05c37f 100644 --- a/test/CodeGenCXX/throw-expressions.cpp +++ b/test/CodeGenCXX/throw-expressions.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -emit-llvm-only -verify %s -Wno-unreachable-code +// RUN: %clang_cc1 -fexceptions -emit-llvm-only -verify %s -Wno-unreachable-code int val = 42; int& test1() { @@ -8,3 +8,8 @@ int& test1() { int test2() { return val ? throw val : val; } + +// rdar://problem/8608801 +void test3() { + throw false; +} |