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