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
Merge from trunk
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-generic-vla1.C
blob
556722ca62d70df7929fa0dbef5421f52034e3e9
1
// PR c++/59271
2
// { dg-options -std=c++1y }
3
4
extern "C" int printf (const char *, ...);
5
6
void f(int n)
7
{
8
int a[n];
9
10
for (auto& i : a)
11
{
12
i = &i - a;
13
}
14
15
[&a] (auto m)
16
{
17
for (auto i : a)
18
{
19
printf ("%d", i);
20
}
21
22
return m;
23
};
24
}