Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/lambda/lambda-vla4.C

raw
1 // PR c++/60855
2 // { dg-do compile { target c++11 } }
3 // { dg-additional-options "-Wno-vla" }
4
5 int main() {
6 unsigned count = 5;
7 bool array[count];
8 [&array] () {
9 array[0] = sizeof(array) > 5;
10 }();
11 return 0;
12 }