[cfe-commits] r155906 - /cfe/trunk/test/Sema/ms_class_layout.cpp

John McCall rjmccall at apple.com
Tue May 1 01:59:06 PDT 2012


Author: rjmccall
Date: Tue May  1 03:59:06 2012
New Revision: 155906

URL: http://llvm.org/viewvc/llvm-project?rev=155906&view=rev
Log:
Add a disclaimer to the new test, plus a user-declared ctor
to force the emission of vtordisps.

Modified:
    cfe/trunk/test/Sema/ms_class_layout.cpp

Modified: cfe/trunk/test/Sema/ms_class_layout.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/ms_class_layout.cpp?rev=155906&r1=155905&r2=155906&view=diff
==============================================================================
--- cfe/trunk/test/Sema/ms_class_layout.cpp (original)
+++ cfe/trunk/test/Sema/ms_class_layout.cpp Tue May  1 03:59:06 2012
@@ -488,10 +488,11 @@
 
 // Overriding a method means that all the vbases containing that
 // method need a vtordisp.
+// FIXME: this is unverified!!
 namespace test1 {
   struct A { virtual void foo(); };
   struct B : A {};
-  struct C : virtual A, virtual B { virtual void foo(); };
+  struct C : virtual A, virtual B { C(); virtual void foo(); };
   void test() { C *c; }
 
 // CHECK:        0 | struct test1::C





More information about the cfe-commits mailing list