/cp
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / auto-fn16.C
blob46177239ddce2ae5cd2b3e34d577658b1da28c25
1 // { dg-do compile { target c++14 } }
3 template<class,class> struct ST;
4 template<class T> struct ST<T,T> {};
6 int j;
7 auto x3 = []()->auto&& { return j; }; // OK: return type is int&
9 int main()
11   ST<decltype(x3()),int&>();