* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / vla7.C
blobdf34c8219dbe317b4698b08247b6fab4d4be440d
1 // PR c++/55520
2 // { dg-options "-Wno-vla" }
3 // { dg-require-effective-target c++11 }
5 int main(int argc, char** argv)
7   int x[1][argc];
9   [&x](int i) {                 // { dg-error "variable.size" }
10     x[0][i] = 0;                // { dg-prune-output "assignment" }
11   }(5);