[cfe-commits] r129672 - in /cfe/trunk/test/CodeGenCXX: derived-to-virtual-base-class-calls-final.cpp dynamic-cast-always-null.cpp value-init.cpp
Anders Carlsson
andersca at mac.com
Sun Apr 17 14:49:47 PDT 2011
Author: andersca
Date: Sun Apr 17 16:49:47 2011
New Revision: 129672
URL: http://llvm.org/viewvc/llvm-project?rev=129672&view=rev
Log:
Cleanup tests, no functionality change.
Modified:
cfe/trunk/test/CodeGenCXX/derived-to-virtual-base-class-calls-final.cpp
cfe/trunk/test/CodeGenCXX/dynamic-cast-always-null.cpp
cfe/trunk/test/CodeGenCXX/value-init.cpp
Modified: cfe/trunk/test/CodeGenCXX/derived-to-virtual-base-class-calls-final.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/derived-to-virtual-base-class-calls-final.cpp?rev=129672&r1=129671&r2=129672&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/derived-to-virtual-base-class-calls-final.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/derived-to-virtual-base-class-calls-final.cpp Sun Apr 17 16:49:47 2011
@@ -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 {
Modified: cfe/trunk/test/CodeGenCXX/dynamic-cast-always-null.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/dynamic-cast-always-null.cpp?rev=129672&r1=129671&r2=129672&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/dynamic-cast-always-null.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/dynamic-cast-always-null.cpp Sun Apr 17 16:49:47 2011
@@ -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) {
Modified: cfe/trunk/test/CodeGenCXX/value-init.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/value-init.cpp?rev=129672&r1=129671&r2=129672&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/value-init.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/value-init.cpp Sun Apr 17 16:49:47 2011
@@ -121,6 +121,7 @@
template<typename>
struct X3 : X2<int> {
X3() : X2<int>() { }
+ int i;
};
@@ -133,7 +134,7 @@
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
More information about the cfe-commits
mailing list