| 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-prune-output "sorry" } |
| 10 |
x[0][i] = 0; // { dg-prune-output "not captured" } |
| 11 |
}(5); |
| 12 |
} |