Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / noexcept51.C
bloba81032f28e9662e8db7e9f1b931a551b3453d948
1 // PR c++/86476 - noexcept-specifier is a complete-class context
2 // { dg-do compile { target c++11 } }
4 void fn1(void());
5 template <typename> class A {
6   void _M_local_data();
7   A() noexcept(_M_local_data);
8 };
10 class B {
11   void _S_initialize();
12   static void _S_initialize_once();
14 void B::_S_initialize() { fn1(_S_initialize_once); }