repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
compiler-rt
/
test
/
cfi
/
bad-split.cpp
blob
9c0c0eee7d850089670cfbb38fde2c0e21bdf38c
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
3
4
// UNSUPPORTED: target={{.*windows-msvc.*}}
5
6
struct
Z
{
7
};
8
9
struct
ZZ
:
public virtual
Z
{
10
};
11
12
struct
A
:
public
ZZ
{
13
};
14
15
struct
B
:
public
A
{
16
};
17
18
int
main
() {
19
A
*
a
=
new
B
();
20
B
*
b
= (
B
*)
a
;
21
}