1 // { dg-do compile { target c++14 } }
2 
f4(bool b)3 constexpr int *f4(bool b) {
4   if (b) {
5     return nullptr;
6   } else {
7     return new int{42}; // { dg-error "call to non-.constexpr." }
8   }
9 }
10 static_assert(f4(true) == nullptr, "");
11 static_assert(f4(false) == nullptr, ""); // { dg-error "non-.constant. condition|" }
12