summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/new-array-init-exceptions.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-02-22 21:36:06 +0000
committerChad Rosier <mcrosier@apple.com>2012-02-22 21:36:06 +0000
commit1a3c3d45374a74b753373747b9a326a3360c3ac4 (patch)
treec76e49bbfd42a1e56abe1ec45749413568cf8b3c /clang/test/CodeGenCXX/new-array-init-exceptions.cpp
parentf56ddeaa6f4df6cfec153311e13e3b372304214c (diff)
downloadbcm5719-llvm-1a3c3d45374a74b753373747b9a326a3360c3ac4.tar.gz
bcm5719-llvm-1a3c3d45374a74b753373747b9a326a3360c3ac4.zip
Revert r151172: Unwind path cleanup for array new list initializers.
llvm-svn: 151203
Diffstat (limited to 'clang/test/CodeGenCXX/new-array-init-exceptions.cpp')
-rw-r--r--clang/test/CodeGenCXX/new-array-init-exceptions.cpp40
1 files changed, 0 insertions, 40 deletions
diff --git a/clang/test/CodeGenCXX/new-array-init-exceptions.cpp b/clang/test/CodeGenCXX/new-array-init-exceptions.cpp
deleted file mode 100644
index 933f7f75536..00000000000
--- a/clang/test/CodeGenCXX/new-array-init-exceptions.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-// RUN: %clang_cc1 -std=c++11 -triple i386-unknown-unknown -fexceptions -fcxx-exceptions %s -emit-llvm -o - | FileCheck %s
-
-struct Throws {
- Throws(int);
- Throws();
- ~Throws();
-};
-
-// CHECK: define void @_Z7cleanupi
-void cleanup(int n) {
- // CHECK: invoke void @_ZN6ThrowsC1Ei
- // CHECK-NEXT: to label %{{[^ ]+}} unwind label %[[LPAD:[^ ]+]]
- // CHECK: invoke void @_ZN6ThrowsC1Ei
- // CHECK-NEXT: to label %{{[^ ]+}} unwind label %[[LPAD]]
- // CHECK: invoke void @_ZN6ThrowsC1Ei
- // CHECK-NEXT: to label %{{[^ ]+}} unwind label %[[LPAD]]
- // CHECK: invoke void @_ZN6ThrowsC1Ev
- // CHECK-NEXT: to label %{{[^ ]+}} unwind label %[[LPAD]]
- new Throws[n] { 1, 2, 3 };
- // CHECK: [[LPAD]]:
- // CHECK-NEXT: landingpad
- // CHECK: call void @_ZN6ThrowsD1Ev
- // CHECK: call void @_ZdaPv
-}
-
-
-// CHECK: define void @_Z7cleanupv
-void cleanup() {
- // CHECK: invoke void @_ZN6ThrowsC1Ei
- // CHECK-NEXT: to label %{{[^ ]+}} unwind label %[[LPAD2:[^ ]+]]
- // CHECK: invoke void @_ZN6ThrowsC1Ei
- // CHECK-NEXT: to label %{{[^ ]+}} unwind label %[[LPAD2]]
- // CHECK: invoke void @_ZN6ThrowsC1Ei
- // CHECK-NEXT: to label %{{[^ ]+}} unwind label %[[LPAD2]]
- new Throws[3] { 1, 2, 3 };
- // CHECK: [[LPAD2]]:
- // CHECK-NEXT: landingpad
- // CHECK: call void @_ZN6ThrowsD1Ev
- // CHECK: call void @_ZdaPv
-}
OpenPOWER on IntegriCloud