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-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git]
/
clang
/
test
/
CodeGenCXX
/
cfi-vcall-check-after-args.cpp
blob
5474c315a95a4e086d5f742980d56b579f861d2d
1
// RUN: %clang_cc1 -flto -flto-unit -triple x86_64-unknown-linux -fvisibility hidden -fsanitize=cfi-vcall -fsanitize-trap=cfi-vcall -emit-llvm -o - %s | FileCheck %s
2
3
struct
A
{
4
virtual
void
f
(
int
);
5
};
6
7
int
g
();
8
void
f
(
A
*
a
) {
9
// CHECK: call noundef i32 @_Z1gv()
10
// CHECK: call i1 @llvm.type.test
11
a
->
f
(
g
());
12
}