diff options
author | Anders Carlsson <andersca@mac.com> | 2009-12-16 17:27:20 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-12-16 17:27:20 +0000 |
commit | 4b3e5be334c93c3f48af2a49c0ea7cd9bae2a0e5 (patch) | |
tree | d80e930c0c6b6dd379d55c636a3faa2c06fd7f67 /test/CodeGenCXX/class-layout.cpp | |
parent | 666183674f6e1b7e7530121f4897f77c43d2f741 (diff) |
Baby steps towards fixing PR5589. If a class needs a vtable pointer, add one.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91545 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/class-layout.cpp')
-rw-r--r-- | test/CodeGenCXX/class-layout.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGenCXX/class-layout.cpp b/test/CodeGenCXX/class-layout.cpp index e1ff37f180..31091c5f45 100644 --- a/test/CodeGenCXX/class-layout.cpp +++ b/test/CodeGenCXX/class-layout.cpp @@ -7,3 +7,7 @@ struct A { } a; // No need to add tail padding here. // CHECK: %struct.B = type { i8*, i32 } struct B { void *a; int b; } b; + +// C should have a vtable pointer. +// CHECK: %struct.C = type { i8**, i32 } +struct C { virtual void f(); int a; } *c; |