m68k: replace reload_in_progress by reload_in_progress || lra_in_progress
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / lambda-vla1.C
blobc9025c79aa7784c821b415906b209274ae080cba
1 // PR c++/90732
2 // { dg-do compile { target c++14 } }
3 // { dg-additional-options "-Wno-vla" }
5 /*const*/ int SIZE = 100;
7 template<typename T>
8 int foo(T t) {
9   char buf[SIZE] = { 24 };
10   return [&buf](auto x){ return buf[x]; }(t);
13 int main() {
14   if (foo(0) != 24)
15     __builtin_abort();