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