1//===- llvm/unittest/CodeGen/TypeTraitsTest.cpp --------------===//
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//===----------------------------------------------------------------------===//
8
9#include "llvm/CodeGen/RegisterPressure.h"
10#include "llvm/CodeGen/ScheduleDAG.h"
11#include "llvm/CodeGen/SelectionDAGNodes.h"
12#include "llvm/CodeGen/SlotIndexes.h"
13#include "llvm/CodeGen/TargetPassConfig.h"
14#include "gtest/gtest.h"
15#include <type_traits>
16
17using namespace llvm;
18
19#if __has_feature(is_trivially_copyable) || (defined(__GNUC__) && __GNUC__ >= 5)
20static_assert(std::is_trivially_copyable_v<PressureChange>,
21 "trivially copyable");
22static_assert(std::is_trivially_copyable_v<SDep>, "trivially copyable");
23static_assert(std::is_trivially_copyable_v<SDValue>, "trivially copyable");
24static_assert(std::is_trivially_copyable_v<SlotIndex>, "trivially copyable");
25static_assert(std::is_trivially_copyable_v<IdentifyingPassPtr>,
26 "trivially copyable");
27#endif
28
29

source code of llvm/unittests/CodeGen/TypeTraitsTest.cpp