repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
auto-fn9.C
blob
54cfa0de4e88700704a765b2c333fa9cf1a7825a
1
// { dg-do compile { target c++14 } }
2
// { dg-final { scan-assembler "_Z1fIiERDaRKT_S1_" } }
3
4
template <class T>
5
auto& f(const T& t, T u) { return t; }
6
7
int main()
8
{
9
int i;
10
f(i,i);
11
}