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] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
CoverageMapping
/
templates.cpp
blob
7010edbc32c34a25aec4d0be81aa17ad784c29d6
1
// RUN: %clang_cc1 -mllvm -emptyline-comment-coverage=false -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name templates.cpp %s | FileCheck %s
2
3
template
<
typename T
>
4
void
unused
(
T x
) {
5
return
;
6
}
7
8
template
<
typename T
>
9
int
func
(
T x
) {
// CHECK: func
10
if
(
x
)
// CHECK: func
11
return
0
;
12
else
13
return
1
;
14
int
j
=
1
;
15
}
16
17
int
main
() {
18
func
<
int
>(
0
);
19
func
<
bool
>(
true
);
20
return
0
;
21
}