summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-vla4.C
blob: 3e9cf076d144cbb3df12173f5b550d05fbad6a1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/60855
// { dg-do compile { target c++11 } }
// { dg-additional-options "-Wno-vla" }

int main() {
  unsigned count = 5;
  bool array[count];
  [&array] () {
    array[0] = sizeof(array) > 5;
  }();
  return 0;
}