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
/
SemaCXX
/
friend3.cpp
blob
3368fdb076153627804cf060a7ebc0c5399c6557
1
// RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++11 -emit-llvm %s -o - | FileCheck %s
2
3
namespace
pr8852
{
4
void
foo
();
5
struct
S
{
6
friend
void
foo
() {}
7
};
8
9
void
main
() {
10
foo
();
11
}
12
// CHECK: define {{.*}} @_ZN6pr88523fooEv
13
}
14
15
namespace
pr9518
{
16
template
<
typename T
>
17
struct
provide
{
18
friend
T
f
() {
return
T
(); }
19
};
20
21
void
g
() {
22
void
f
();
23
provide
<
void
>
p
;
24
f
();
25
}
26
// CHECK: define {{.*}} @_ZN6pr95181fEv
27
}