Sign in
chromium
/
external
/
llvm.org
/
clang
/
741e05796da92b46d4f7bcbee00702ff37df6489
/
.
/
test
/
Import
/
cxx-casts
/
Inputs
/
F.cpp
blob: 79326a7e4b281ef8d6c5379afb1837340e27d3f9 [
file
] [
log
] [
blame
]
struct
A
{
virtual
~
A
()
{}
};
struct
B
:
public
A
{};
void
f
()
{
const
A
*
b
=
new
B
();
const
B
*
c1
=
dynamic_cast
<
const
B
*>(
b
);
const
B
*
c2
=
static_cast
<
const
B
*>(
b
);
const
B
*
c3
=
reinterpret_cast
<
const
B
*>(
b
);
A
*
c4
=
const_cast
<
A
*>(
b
);
}