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