Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / cfi / bad-split.cpp
blob9c0c0eee7d850089670cfbb38fde2c0e21bdf38c
1 // GlobalSplit used to lose type metadata for classes with virtual bases but no virtual methods.
2 // RUN: %clangxx_cfi -o %t1 %s && %run %t1
4 // UNSUPPORTED: target={{.*windows-msvc.*}}
6 struct Z {
7 };
9 struct ZZ : public virtual Z {
12 struct A : public ZZ {
15 struct B : public A {
18 int main() {
19 A* a = new B();
20 B *b = (B*)a;