r174966 - Rename -constructors test to just -structors as in fact it tests dtors too. Also, fix a minor typo in the test.
Timur Iskhodzhanov
timurrrr at google.com
Tue Feb 12 05:22:48 PST 2013
Author: timurrrr
Date: Tue Feb 12 07:22:47 2013
New Revision: 174966
URL: http://llvm.org/viewvc/llvm-project?rev=174966&view=rev
Log:
Rename -constructors test to just -structors as in fact it tests dtors too. Also, fix a minor typo in the test.
Added:
cfe/trunk/test/CodeGenCXX/microsoft-abi-structors.cpp
- copied, changed from r174965, cfe/trunk/test/CodeGenCXX/microsoft-abi-constructors.cpp
Removed:
cfe/trunk/test/CodeGenCXX/microsoft-abi-constructors.cpp
Removed: cfe/trunk/test/CodeGenCXX/microsoft-abi-constructors.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/microsoft-abi-constructors.cpp?rev=174965&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/microsoft-abi-constructors.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/microsoft-abi-constructors.cpp (removed)
@@ -1,35 +0,0 @@
-// RUN: %clang_cc1 -emit-llvm %s -o - -cxx-abi microsoft -triple=i386-pc-win32 | FileCheck %s
-
-class A {
- public:
- A() { }
- ~A() { }
-};
-
-void no_contstructor_destructor_infinite_recursion() {
- A a;
-
-// CHECK: define linkonce_odr x86_thiscallcc %class.A* @"\01??0A@@QAE at XZ"(%class.A* %this)
-// CHECK: [[THIS_ADDR:%[.0-9A-Z_a-z]+]] = alloca %class.A*, align 4
-// CHECK-NEXT: store %class.A* %this, %class.A** [[THIS_ADDR]], align 4
-// CHECK-NEXT: [[T1:%[.0-9A-Z_a-z]+]] = load %class.A** [[THIS_ADDR]]
-// CHECK-NEXT: ret %class.A* [[T1]]
-// CHECK-NEXT: }
-
-// Make sure that the destructor doesn't call itself:
-// CHECK: define {{.*}} @"\01??1A@@QAE at XZ"
-// CHECK-NOT: call void @"\01??1A@@QAE at XZ"
-// CHECK: ret
-}
-
-struct B {
- virtual ~B();
- virtual void foo();
-};
-
-void check_vftable_offset() {
- B b;
-// The vftable pointer should point at the beginning of the vftable.
-// CHECK: [[THIS_PTR:%[0-9]+]] = bitcast %struct.B* {{.*}} to i8***
-// CHECK: store i8** getelementptr inbounds ([2 x i8*]* @"\01??_7B@@6B@", i64 0, i64 0), i8*** [[THIS_PTR]]
-}
Copied: cfe/trunk/test/CodeGenCXX/microsoft-abi-structors.cpp (from r174965, cfe/trunk/test/CodeGenCXX/microsoft-abi-constructors.cpp)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/microsoft-abi-structors.cpp?p2=cfe/trunk/test/CodeGenCXX/microsoft-abi-structors.cpp&p1=cfe/trunk/test/CodeGenCXX/microsoft-abi-constructors.cpp&r1=174965&r2=174966&rev=174966&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/microsoft-abi-constructors.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/microsoft-abi-structors.cpp Tue Feb 12 07:22:47 2013
@@ -6,7 +6,7 @@ class A {
~A() { }
};
-void no_contstructor_destructor_infinite_recursion() {
+void no_constructor_destructor_infinite_recursion() {
A a;
// CHECK: define linkonce_odr x86_thiscallcc %class.A* @"\01??0A@@QAE at XZ"(%class.A* %this)
More information about the cfe-commits
mailing list