Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: test/CodeGenCXX/throw-expressions.cpp

Issue 184973004: Prep for merging 3.4: Undo changes from 3.3 branch (Closed) Base URL: http://git.chromium.org/native_client/pnacl-clang.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/CodeGen/linux-arm-atomic.c ('k') | test/Driver/sanitizer-ld.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/CodeGenCXX/throw-expressions.cpp
diff --git a/test/CodeGenCXX/throw-expressions.cpp b/test/CodeGenCXX/throw-expressions.cpp
index ba8a86881a63de3907ec8ee16f0734ef22252c7c..f04185b23f1b91d08d8ee5443aa5b9dafaece029 100644
--- a/test/CodeGenCXX/throw-expressions.cpp
+++ b/test/CodeGenCXX/throw-expressions.cpp
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -Wno-unreachable-code -Werror -triple x86_64-linux-gnu -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -emit-llvm-only -verify %s -Wno-unreachable-code
+// expected-no-diagnostics
int val = 42;
int& test1() {
@@ -18,28 +19,3 @@ void test3() {
int test4() {
return 1 ? throw val : val;
}
-
-// PR15923
-int test5(bool x, bool y, int z) {
- return (x ? throw 1 : y) ? z : throw 2;
-}
-// CHECK: define i32 @_Z5test5bbi(
-// CHECK: br i1
-//
-// x.true:
-// CHECK: call void @__cxa_throw(
-// CHECK-NEXT: unreachable
-//
-// x.false:
-// CHECK: br i1
-//
-// y.true:
-// CHECK: load i32*
-// CHECK: br label
-//
-// y.false:
-// CHECK: call void @__cxa_throw(
-// CHECK-NEXT: unreachable
-//
-// end:
-// CHECK: ret i32
« no previous file with comments | « test/CodeGen/linux-arm-atomic.c ('k') | test/Driver/sanitizer-ld.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698