1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 // Verify TEST_WORKAROUND_MSVC_BROKEN_IS_TRIVIALLY_COPYABLE.
13 #include <type_traits>
15 #include "test_macros.h"
16 #include "test_workarounds.h"
19 S(S
const&) = default;
21 S
& operator=(S
const&) = delete;
22 S
& operator=(S
&&) = delete;
25 int main(int, char**) {
26 #ifdef TEST_WORKAROUND_MSVC_BROKEN_IS_TRIVIALLY_COPYABLE
27 static_assert(!std::is_trivially_copyable
<S
>::value
, "");
29 static_assert(std::is_trivially_copyable
<S
>::value
, "");