[docs] Fix build-docs.sh
[llvm-project.git] / compiler-rt / test / cfi / bad-split.cpp
blobdbbd7ecef0ced9e9c8c56f4985a65ce707b01ac4
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: 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;