1 // { dg-do compile { target c++11 } }
5 static constexpr bool value = false;
9 constexpr T value(T t) noexcept(is_funny<T>::value) { return t; } // Line 7
11 constexpr bool ok = noexcept(value(42));
13 // We used to treat a call to a constexpr function as noexcept if
14 // the call was a constant expression. We no longer do since
16 static_assert(!ok, "Assertion failure");