Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
e0cdb4edd8f265d0fd22d178d03c597dd201cda2
/
.
/
test
/
CodeGenCXX
/
dynamic-cast.cpp
blob: aeb2a64157b4eb5ac76c4bb8ee246a07a63a53a0 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 %s -emit-llvm-only
struct
A
{
virtual
void
f
();
};
struct
B
:
A
{
};
const
B
&
f
(
A
*
a
)
{
return
dynamic_cast
<
const
B
&>(*
a
);
}