1 // { dg-do compile { target c++14 } }
3 constexpr int *f4(bool b) {
7 return new int{42}; // { dg-error "call to non-constexpr" }
10 static_assert(f4(true) == nullptr, "");
11 static_assert(f4(false) == nullptr, ""); // { dg-error "non-constant condition" }