Sign in
gnu
/
gcc
/
93ac832f1846e4867aa6537f76f510fab8e3e87d
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
vla7.C
blob: afa5fac508d1839c3da42d2439eadc34dcc8a0f6 [
file
] [
log
] [
blame
]
// PR c++/55520
// { dg-options "-Wno-vla" }
// { dg-require-effective-target c++11 }
int
main
(
int
argc
,
char
**
argv
)
{
int
x
[
1
][
argc
];
[&
x
](
int
i
)
{
// { dg-prune-output "sorry" }
x
[
0
][
i
]
=
0
;
// { dg-prune-output "not captured" }
}(
5
);
}