[PowerPC][NFC] Cleanup PPCCTRLoopsVerify pass
[llvm-project.git] / libcxx / test / support / test.workarounds / c1xx_broken_is_trivially_copyable.pass.cpp
blob8182511ed57ea8697a3804eef2bd11ef2a8f56fd
1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03
11 // Verify TEST_WORKAROUND_C1XX_BROKEN_IS_TRIVIALLY_COPYABLE.
13 #include <type_traits>
15 #include "test_macros.h"
16 #include "test_workarounds.h"
18 struct S {
19 S(S const&) = default;
20 S(S&&) = default;
21 S& operator=(S const&) = delete;
22 S& operator=(S&&) = delete;
25 int main(int, char**) {
26 #if defined(TEST_WORKAROUND_C1XX_BROKEN_IS_TRIVIALLY_COPYABLE)
27 static_assert(!std::is_trivially_copyable<S>::value, "");
28 #else
29 static_assert(std::is_trivially_copyable<S>::value, "");
30 #endif
32 return 0;