1 // PR c++/66256 - noexcept-specifier is a complete-class context.
2 // { dg-do compile { target c++11 } }
3 
4 void swap(int&, int&);
5 
6 int& get();
7 
8 struct pair {
swappair9   void swap(pair&) noexcept(noexcept(swap(get(), get()))) { } // { dg-error "no matching function for call" }
10 };
11