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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
fold4.C
blob
e0ee131a9bbaa706cef9f10339ed4fe6eb77f802
1
// { dg-do compile { target c++17 } }
2
3
template <class...T>
4
constexpr auto f(T... t)
5
{
6
return (... + *t);
7
}
8
9
const int i = 42, j = 24;
10
static_assert (f(&i,&j) == i+j);