| 1 |
// PR c++/96103 |
| 2 |
// { dg-do compile { target c++11_only } } |
| 3 |
|
| 4 |
decltype(auto) foo () { return 4; } // { dg-error ".decltype\\(auto\\). type specifier only available" } |
| 5 |
|
| 6 |
void |
| 7 |
bar () |
| 8 |
{ |
| 9 |
decltype(auto) i = 0; // { dg-error ".decltype\\(auto\\). type specifier only available" } |
| 10 |
} |