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
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
Import
/
cxx-casts
/
Inputs
/
F.cpp
blob
79326a7e4b281ef8d6c5379afb1837340e27d3f9
1
struct
A
{
2
virtual
~
A
() {}
3
};
4
struct
B
:
public
A
{};
5
6
void
f
() {
7
const
A
*
b
=
new
B
();
8
const
B
*
c1
=
dynamic_cast
<
const
B
*>(
b
);
9
const
B
*
c2
=
static_cast
<
const
B
*>(
b
);
10
const
B
*
c3
=
reinterpret_cast
<
const
B
*>(
b
);
11
A
*
c4
=
const_cast
<
A
*>(
b
);
12
}