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
/
template-instantiation.cpp
blob
8543af0d5428d033d7fa66e53dc2f7f739df985e
1
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -verify -fsyntax-only %s
2
// expected-no-diagnostics
3
4
namespace
GH76521
{
5
6
template
<
typename T
>
7
void
foo
() {
8
auto
l
= []()
__attribute__
((
preserve_most
)) {};
9
}
10
11
void
bar
() {
12
foo
<
int
>();
13
}
14
15
}