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
fortran/openmp.cc: Fix var init and locus use to avoid uninit values [PR fortran...
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-generic-vla1.C
blob
94d18605057bd760845a6bafef19f64f6c4bf942
1
// PR c++/59271
2
// { dg-do compile { target c++14 } }
3
// { dg-options "-Wno-vla" }
4
// { dg-require-effective-target alloca }
5
6
extern "C" int printf (const char *, ...);
7
8
void f(int n)
9
{
10
int a[n];
11
12
for (auto& i : a)
13
{
14
i = &i - a;
15
}
16
17
[&a] (auto m)
18
{
19
for (auto i : a)
20
{
21
printf ("%d", i);
22
}
23
24
return m;
25
};
26
}