]> granicus.if.org Git - clang/commitdiff
Remove "CH_ECK" line (which is ignored) from test after r154191.
authorNico Weber <nicolasweber@gmx.de>
Wed, 7 May 2014 16:25:32 +0000 (16:25 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 7 May 2014 16:25:32 +0000 (16:25 +0000)
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

index b8d95991e2d6a8d7e904d65732b181a3fe6a31b4..b6629f444e3fd815a8fbc610610236ae177c5102 100644 (file)
@@ -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)