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
/
vla7.C
blob
df34c8219dbe317b4698b08247b6fab4d4be440d
1
// PR c++/55520
2
// { dg-options "-Wno-vla" }
3
// { dg-require-effective-target c++11 }
4
5
int main(int argc, char** argv)
6
{
7
int x[1][argc];
8
9
[&x](int i) { // { dg-error "variable.size" }
10
x[0][i] = 0; // { dg-prune-output "assignment" }
11
}(5);
12
}