]> granicus.if.org Git - clang/commitdiff
Cleanup tests, no functionality change.
authorAnders Carlsson <andersca@mac.com>
Sun, 17 Apr 2011 21:49:47 +0000 (21:49 +0000)
committerAnders Carlsson <andersca@mac.com>
Sun, 17 Apr 2011 21:49:47 +0000 (21:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129672 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/derived-to-virtual-base-class-calls-final.cpp
test/CodeGenCXX/dynamic-cast-always-null.cpp
test/CodeGenCXX/value-init.cpp

index e332f4020001089a208efba2134e418378d32df1..0e153022439b55f4b992f498c11c101d2a2e6dfc 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
 
 struct A { int i; };
-struct B { int j; };
+struct B { char j; };
 struct C : A, B { int k; };
 
 struct D final : virtual C { 
index 48ec69226c293c9dbdbd230808c552e32c6f4309..e4e86942181df5b43b5848d03921170dd10872ef 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 -I%S %s -triple x86_64-apple-darwin10 -emit-llvm -fcxx-exceptions -fexceptions -std=c++0x -o - | FileCheck %s
 struct A { virtual ~A(); };
 struct B final : A { };
-struct C { virtual ~C(); };
+struct C { virtual ~C(); int c; };
 
 // CHECK: @_Z1fP1B
 C *f(B* b) {
index 258d6926e1488b3991185f6f480518e3e5e8fc5b..188c8f5a14183848bc2cda379df300d38b47ff96 100644 (file)
@@ -121,6 +121,7 @@ namespace zeroinit {
   template<typename>
   struct X3 : X2<int> { 
     X3() : X2<int>() { }
+    int i;
   };
   
 
@@ -133,7 +134,7 @@ namespace zeroinit {
     X3<int>().f();
   }
 
-  // CHECK: define linkonce_odr void @_ZN8zeroinit2X3IiEC2Ev(%struct.B* %this) unnamed_addr
+  // CHECK: define linkonce_odr void @_ZN8zeroinit2X3IiEC2Ev(%"struct.zeroinit::X3"* %this) unnamed_addr
   // CHECK: call void @llvm.memset.p0i8.i64
   // CHECK-NEXT: call void @_ZN8zeroinit2X2IiEC2Ev
   // CHECK-NEXT: ret void