* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / noexcept09.C
blobd26a3aeab100b4e4092519b3c60f3f3e646f1da4
1 // Test that -Wnoexcept works with templates
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wnoexcept" }
5 template <class T>
6 T f (T t) { return t; }         // { dg-warning "does not throw" }
8 #define SA(X) static_assert(X, #X)
10 SA (!noexcept(f(1)));           // { dg-warning "noexcept" }
12 int main()
14   f(1);                         // Use f(int) so it gets instantiated