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
* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
abbrev1.C
blob
3caa814c58dc675899e002ea1d7ed3878afc8a48
1
// PR c++/64969
2
// { dg-options "-std=c++17" }
3
4
auto f1(auto x) { return *x; }
5
decltype(auto) f2(auto x) { return *x; }
6
auto f3(auto x) -> int { return *x; }
7
8
int i;
9
auto r1 = f1(&i);
10
auto r2 = f2(&i);
11
auto r3 = f3(&i);