[cfe-commits] r98246 - /cfe/trunk/test/CodeGenCXX/vtable-layout.cpp

Anders Carlsson andersca at mac.com
Wed Mar 10 22:44:31 PST 2010


Author: andersca
Date: Thu Mar 11 00:44:31 2010
New Revision: 98246

URL: http://llvm.org/viewvc/llvm-project?rev=98246&view=rev
Log:
Add a test.

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=98246&r1=98245&r2=98246&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/vtable-layout.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/vtable-layout.cpp Thu Mar 11 00:44:31 2010
@@ -886,6 +886,13 @@
 // CHECK-NEXT:        -- (Test21::C, 8) vtable address --
 // CHECK-NEXT:        -- (Test21::E, 8) vtable address --
 // CHECK-NEXT:   15 | [unused] void Test21::F::f()
+//
+// CHECK:      Virtual base offset offsets for 'Test21::F'.
+// CHECK-NEXT:   Test21::A | -32
+// CHECK-NEXT:    Test21::B | -40
+// CHECK-NEXT:    Test21::C | -48
+// CHECK-NEXT:    Test21::D | -56
+// CHECK-NEXT:    Test21::E | -64
 class F : virtual D, virtual E {
   virtual void f();
 };





More information about the cfe-commits mailing list