diff options
author | Anders Carlsson <andersca@mac.com> | 2010-02-11 18:21:49 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-02-11 18:21:49 +0000 |
commit | 48ea217fbf9db1163054a66a3d336fee9375da60 (patch) | |
tree | 6e342816acda4cb4d3f7b9d2cfd807b548a07fe7 /clang/test/CodeGenCXX/vtable-layout.cpp | |
parent | 5bd8d192915b43e30e3ff44336f33a5acc099b18 (diff) | |
download | bcm5719-llvm-48ea217fbf9db1163054a66a3d336fee9375da60.tar.gz bcm5719-llvm-48ea217fbf9db1163054a66a3d336fee9375da60.zip |
Add virtual operator= example.
llvm-svn: 95888
Diffstat (limited to 'clang/test/CodeGenCXX/vtable-layout.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/vtable-layout.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/vtable-layout.cpp b/clang/test/CodeGenCXX/vtable-layout.cpp index dd9109e1589..c59eff0abf8 100644 --- a/clang/test/CodeGenCXX/vtable-layout.cpp +++ b/clang/test/CodeGenCXX/vtable-layout.cpp @@ -16,7 +16,7 @@ void A::f() { } 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 @@ namespace Test2 { // 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 @@ struct A { virtual A* g(int a); virtual ~A(); virtual void h(); + virtual A& operator=(const A&); }; void A::f() { } |