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
/
SemaTemplate
/
sizeof-pack.cpp
blob
274726a2315077f5121d747b8706df4f20c1d3ba
1
// RUN: %clang_cc1 -std=c++11 -verify %s
2
3
template
<
int
&...
Ns
>
int
f
() {
4
return sizeof
...(
Ns
);
5
}
6
template
int
f
<>();
7
8
template
<
typename
...
T
>
int
g
() {
9
return
[...
x
=
T
()] {
// expected-warning 2{{extension}}
10
return sizeof
...(
x
);
11
}();
12
}
13
template
int
g
<>();