* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-noexcept4.C
blobeb7190023ed637568524aaac5ee0535a0f49ff56
1 // { dg-do compile { target c++11 } }
2 // A call is noexcept if it is a valid subexpression of a constant
3 // expression, even if it is not itself a constant expression.
5 #define SA(X) static_assert(X,#X)
7 constexpr const int* f(const int *p) { return p; }
9 int main()
11   constexpr int i = 42;
12   SA(noexcept(*f(&i)));
13   SA(noexcept(f(&i)));