From d725b1e7ff06712cb7ef494dc391441e01a17beb Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 7 May 2014 16:25:32 +0000 Subject: [PATCH] Remove "CH_ECK" line (which is ignored) from test after r154191. r154191 switched to atexit() instead of global destructors, so the intent was probably to check for _GLOBAL__D_a _not_ being in the output. There already is a line for _ZN3barD1Ev further up, so just remove the CH_ECK line referring to that. The only circumstance in which clang emits _GLOBAL__D_a destructor symbols is for -fapple-kext, and that is tested by test/CodeGenCXX/cxx-apple-kext.cpp. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208222 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGenCXX/arm.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/CodeGenCXX/arm.cpp b/test/CodeGenCXX/arm.cpp index b8d95991e2..b6629f444e 100644 --- a/test/CodeGenCXX/arm.cpp +++ b/test/CodeGenCXX/arm.cpp @@ -28,6 +28,7 @@ bar baz; // CHECK: call [[BAR:%.*]]* @_ZN3barC1Ev( // CHECK-NEXT: call i32 @atexit(void ()* @__dtor_baz) +// CHECK-NOT: @_GLOBAL__D_a() // CHECK-LABEL: define internal void @__dtor_baz() // CHECK: call [[BAR]]* @_ZN3barD1Ev([[BAR]]* @baz) @@ -416,6 +417,3 @@ namespace test9 { // CHECK-LABEL: define linkonce_odr void @_ZTv0_n12_N5test21CD0Ev( // CHECK: call void @_ZN5test21CD0Ev( // CHECK: ret void - -// CH_ECK: @_GLOBAL__D_a() -// CH_ECK: call %class.bar* @_ZN3barD1Ev(%class.bar* @baz) -- 2.40.0