r197143 - Add a test case for the PR17748 crash

Timur Iskhodzhanov timurrrr at google.com
Thu Dec 12 03:07:03 PST 2013


Author: timurrrr
Date: Thu Dec 12 05:07:03 2013
New Revision: 197143

URL: http://llvm.org/viewvc/llvm-project?rev=197143&view=rev
Log:
Add a test case for the PR17748 crash

Modified:
    cfe/trunk/test/CodeGenCXX/microsoft-abi-vtables-virtual-inheritance.cpp

Modified: cfe/trunk/test/CodeGenCXX/microsoft-abi-vtables-virtual-inheritance.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/microsoft-abi-vtables-virtual-inheritance.cpp?rev=197143&r1=197142&r2=197143&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/microsoft-abi-vtables-virtual-inheritance.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/microsoft-abi-vtables-virtual-inheritance.cpp Thu Dec 12 05:07:03 2013
@@ -430,6 +430,26 @@ void X::f() {}
 X x;
 }
 
+namespace Test11 {
+struct X : virtual A {};
+struct Y { virtual void g(); };
+
+struct Z : virtual X, Y {
+  // MANGLING-DAG: @"\01??_7Z at Test11@@6BY at 1@@"
+
+  // FIXME this one is wrong:
+  // MANGLING-DAG-SHOULD-BE: @"\01??_7Z at Test11@@6BX at 1@@"
+  // INCORRECT MANGLING-DAG: @"\01??_7Z at Test11@@6BA@@@"
+};
+
+Z z;
+
+struct W : virtual X, A {};
+
+// PR17748 FIXME this one hits UNREACHABLE:
+// W w;
+}
+
 namespace vdtors {
 struct X {
   virtual ~X();





More information about the cfe-commits mailing list