repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c++: robustify testcase [PR109752]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-generic-variadic11.C
blob
01ef7c6e22083035f86f0d97dd8fe365612f378a
1
// PR c++/84036
2
// { dg-do compile { target c++14 } }
3
4
template < typename... T > void sink(T ...){}
5
6
template < typename T >
7
auto f(T){
8
auto l = [](auto ... i){
9
[i ...]{
10
sink(i...);
11
[=]{ sink(i ...); }();
12
}();
13
};
14
l();
15
l(42);
16
l(0.1,0.2);
17
}
18
19
int main(){
20
f(0);
21
}