You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
323 B
22 lines
323 B
// GlobalSplit used to lose type metadata for classes with virtual bases but no virtual methods.
|
|
// RUN: %clangxx_cfi -o %t1 %s && %run %t1
|
|
|
|
// UNSUPPORTED: windows-msvc
|
|
|
|
struct Z {
|
|
};
|
|
|
|
struct ZZ : public virtual Z {
|
|
};
|
|
|
|
struct A : public ZZ {
|
|
};
|
|
|
|
struct B : public A {
|
|
};
|
|
|
|
int main() {
|
|
A* a = new B();
|
|
B *b = (B*)a;
|
|
}
|