Remove not needed __builtin_expect due to malloc predictor.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / pr63996.C
blob2e8cab58a7a0c3c0f9cab66afc2d527a0813cc7f
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 "forbids variable length" }
10 constexpr int j = foo (1); // { dg-error "flows off the end|in .constexpr. expansion of" }