☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
auto-fn16.C
☽
☼
gcc/testsuite/g++.dg/cpp1y/auto-fn16.C
code
plain
raw
1
// { dg-do compile { target c++14 } }
2
3
template<class,class> struct ST;
4
template<class T> struct ST<T,T> {};
5
6
int j;
7
auto x3 = []()->auto&& { return j; }; // OK: return type is int&
8
9
int main()
10
{
11
ST<decltype(x3()),int&>();
12
}