PR c++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / auto-fn9.C
blob54cfa0de4e88700704a765b2c333fa9cf1a7825a
1 // { dg-do compile { target c++14 } }
2 // { dg-final { scan-assembler "_Z1fIiERDaRKT_S1_" } }
4 template <class T>
5 auto& f(const T& t, T u) { return t; }
7 int main()
9   int i;
10   f(i,i);