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
Remove not needed __builtin_expect due to malloc predictor.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
pr60033.C
blob
c083facb43afae66fed245047fd2948e2b6ff6ed
1
// PR c++/60033
2
// { dg-do compile { target c++14 } }
3
4
template <typename... T>
5
auto f(T&&... ts)
6
{
7
return sizeof...(ts);
8
}
9
10
template <typename... T>
11
auto g(T&&... ts) {
12
return [&] (auto v) {
13
return f(ts...);
14
};
15
}
16
17
int main()
18
{
19
return g(1,2,3,4)(5) == 4 ? 0 : 1;
20
}