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
[AMDGPU][True16][CodeGen] true16 codegen pattern for v_med3_u/i16 (#121850)
[llvm-project.git]
/
clang
/
test
/
CodeGenCXX
/
dynamic-cast-dead.cpp
blob
8154cc1ba123aa93f7c05e1d08128813c7bb0f98
1
// RUN: %clang_cc1 -I%S %s -O3 -triple x86_64-apple-darwin10 -emit-llvm -fcxx-exceptions -fexceptions -std=c++11 -o - | FileCheck %s
2
struct
A
{
virtual
~
A
(); };
3
struct
B
:
A
{ };
4
5
void
foo
(
A
*
a
) {
6
// CHECK-NOT: call {{.*}} @__dynamic_cast
7
B
*
b
=
dynamic_cast
<
B
*>(
a
);
8
}