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 c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
concepts
/
abbrev1.C
blob
8de681f2db6a412d111549dbfab0ab00cbe0ce2a
1
// PR c++/64969
2
// { dg-do compile { target c++14 } }
3
// { dg-additional-options "-fconcepts" }
4
5
auto f1(auto x) { return *x; }
6
decltype(auto) f2(auto x) { return *x; }
7
auto f3(auto x) -> int { return *x; }
8
9
int i;
10
auto r1 = f1(&i);
11
auto r2 = f2(&i);
12
auto r3 = f3(&i);