blob: 3357fe3cf23c6bc7103859e826a176ed7dd347b4 [file] [log] [blame]
// { dg-do compile { target c++14 } }
// { dg-additional-options "-Wno-return-type" }
constexpr int f (int i)
{
if (i == -1) return 0;
}
constexpr int i = f(42); // { dg-error "flows off the end|in .constexpr. expansion of " }