* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-noexcept.C
blobdbadaa8e3d217729c32062e55e51b4f277aa5c33
1 // { dg-do compile { target c++11 } }
3 template<class T>
4 struct is_funny {
5   static constexpr bool value = false;
6 };
8 template<class T>
9 constexpr T value(T t) noexcept(is_funny<T>::value) { return t; } // Line 7
11 constexpr bool ok = noexcept(value(42));
13 static_assert(ok, "Assertion failure");