Add a test case for the PR17748 crash

llvm-svn: 197143
This commit is contained in:
Timur Iskhodzhanov 2013-12-12 11:07:03 +00:00
parent a818200efb
commit fae1eda671
1 changed files with 20 additions and 0 deletions

View File

@ -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@Test11@@6BY@1@@"
// FIXME this one is wrong:
// MANGLING-DAG-SHOULD-BE: @"\01??_7Z@Test11@@6BX@1@@"
// INCORRECT MANGLING-DAG: @"\01??_7Z@Test11@@6BA@@@"
};
Z z;
struct W : virtual X, A {};
// PR17748 FIXME this one hits UNREACHABLE:
// W w;
}
namespace vdtors {
struct X {
virtual ~X();