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-variadic14.C
blob
76567966293e2443cc981a5ffaf7a5e8f1da51cd
1
// PR c++/84368
2
// { dg-do compile { target c++14 } }
3
4
template < typename ... T >
5
void sink(T ...){}
6
7
template < typename ... T >
8
void foo(T ... v){
9
[](auto ... v){
10
auto bar = [](auto, auto){ return 0; };
11
sink(bar(v, T{}) ...);
12
}(v ...);
13
}
14
15
int main(){
16
foo(0);
17
}