m68k: replace reload_in_progress by reload_in_progress || lra_in_progress
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / pr63996.C
blob8eee2e0af3090c013921a003e50a37435ae26861
1 // { dg-do compile { target c++14 } }
2 // { dg-additional-options "-Wno-return-type" }
4 constexpr int
5 foo (int i)
7   int a[i] = { }; // { dg-error "7:ISO C\\+\\+ forbids variable length array .a" }
8   if (i == 23) return 0;
11 constexpr int j = foo (1); // { dg-error "flows off the end|in .constexpr. expansion of" }