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
/
var-templ49.C
blob
7ac574420f428405e6c3c4ecd74db62d9dc77cd7
1
// PR c++/66786
2
// { dg-do compile { target c++14 } }
3
4
int f (int, bool);
5
6
template <typename>
7
auto list = [](auto... xs) { return [=](auto f, auto... ys) { return f(xs..., ys...); }; };
8
9
const int &a = list<int>(0)(f, true);