1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 %s
10 static const bool value = false;
14 void swap(T& x, T& y) noexcept(some_trait<T>::value)
16 T tmp(static_cast<T&&>(x));
17 x = static_cast<T&&>(y);
18 y = static_cast<T&&>(tmp);
21 template <class T, unsigned N>
26 void swap(array& a) noexcept(noexcept(::swap(declval<T&>(), declval<T&>())));
31 DefaultOnly() = default;
32 DefaultOnly(const DefaultOnly&) = delete;
33 DefaultOnly& operator=(const DefaultOnly&) = delete;
34 ~DefaultOnly() = default;
39 array<DefaultOnly, 1> a, b;