* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / noexcept07.C
blobde16e016ff412b885dcd918379860dc3b548f4a5
1 // Test that checking of a nothrow specification uses the one on the
2 // definition.  In C++17 throw() is equivalent to noexcept(true).
3 // { dg-do run { target { c++11 && c++14_down } } }
5 #include <exception>
6 #include <cstdlib>
8 void my_unexpected ()
10   std::exit (0);
13 void f() noexcept;
14 void f() throw()
16   throw 1;
19 int main()
21   std::set_unexpected (my_unexpected);
22   f();
23   return 1;