Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
2f1986b557fa671c4f8c9dd0d071398edfc073d5
/
.
/
test
/
CodeGenCXX
/
virtual-base-cast.cpp
blob: 9a728a82248c4585be7f129b5f208404a99038bb [
file
] [
log
] [
blame
]
Anders Carlsson
2f1986b
2009-10-06 22:43:30 +0000
[
diff
] [
blame^
]
1
// RUN: clang-cc -emit-llvm-only %s
2
3
struct
A
{
virtual
~
A
();
};
4
struct
B
:
A
{
virtual
~
B
();
};
5
struct
C
:
virtual
B
{
virtual
~
C
();
};
6
7
void
f
(
C
*
c
)
{
8
A
*
a
=
c
;
9
}