Files
clang-p2996/compiler-rt/test/cfi/bad-split.cpp
Evgeniy Stepanov 32f6b5129f [cfi] Disable bad-split test on win32.
It appears that the fix only helped Itanium ABI.

llvm-svn: 297775
2017-03-14 20:02:42 +00:00

22 lines
311 B
C++

// GlobalSplit used to lose type metadata for classes with virtual bases but no virtual methods.
// RUN: %clangxx_cfi -o %t1 %s && %t1
// UNSUPPORTED: win32
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;
}