| 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); |