[cfe-commits] r95888 - /cfe/trunk/test/CodeGenCXX/vtable-layout.cpp
Anders Carlsson
andersca at mac.com
Thu Feb 11 10:21:49 PST 2010
Author: andersca
Date: Thu Feb 11 12:21:49 2010
New Revision: 95888
URL: http://llvm.org/viewvc/llvm-project?rev=95888&view=rev
Log:
Add virtual operator= example.
Modified:
cfe/trunk/test/CodeGenCXX/vtable-layout.cpp
Modified: cfe/trunk/test/CodeGenCXX/vtable-layout.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/vtable-layout.cpp?rev=95888&r1=95887&r2=95888&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/vtable-layout.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/vtable-layout.cpp Thu Feb 11 12:21:49 2010
@@ -16,7 +16,7 @@
namespace Test2 {
// This is a smoke test of the vtable dumper.
-// CHECK: Vtable for 'Test2::A' (8 entries).
+// CHECK: Vtable for 'Test2::A' (9 entries).
// CHECK-NEXT: 0 | offset_to_top (0)
// CHECK-NEXT: 1 | Test2::A RTTI
// CHECK-NEXT: -- (Test2::A, 0) vtable address --
@@ -26,6 +26,7 @@
// CHECK-NEXT: 5 | Test2::A::~A() [complete]
// CHECK-NEXT: 6 | Test2::A::~A() [deleting]
// CHECK-NEXT: 7 | void Test2::A::h()
+// CHECK-NEXT: 8 | Test2::A &Test2::A::operator=(Test2::A const &)
struct A {
virtual void f();
virtual void f() const;
@@ -33,6 +34,7 @@
virtual A* g(int a);
virtual ~A();
virtual void h();
+ virtual A& operator=(const A&);
};
void A::f() { }
More information about the cfe-commits
mailing list