Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git] / main / gcc / testsuite / g++.dg / ext / has_nothrow_copy-8.C
blobb6862298d3c82b121c6756fcd3cc0b74bc8db90c
1 // PR c++/56268
2 // { dg-do compile { target c++11 } }
4 template <class T>
5 struct A {
6   A(const A&) noexcept (T::value);
7 };
9 struct B {
10   static const bool value = true;
13 template <class T>
14 struct C {
15   static const bool value = __has_nothrow_copy (T);
18 #define SA(X) static_assert((X),#X)
19 SA(C<A<B>>::value);