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
PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
fold4.C
blob
2365d50c3c482955be6e5747ea340a060ace18b7
1
// { dg-options -std=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);