[docs] Fix build-docs.sh
[llvm-project.git] / llvm / unittests / CodeGen / TypeTraitsTest.cpp
blobaf1f36c1e9454ad1e03f881b9324529de074d051
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 //===----------------------------------------------------------------------===//
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>
17 using namespace llvm;
19 #if __has_feature(is_trivially_copyable) || (defined(__GNUC__) && __GNUC__ >= 5)
20 static_assert(std::is_trivially_copyable<PressureChange>::value,
21 "trivially copyable");
22 static_assert(std::is_trivially_copyable<SDep>::value, "trivially copyable");
23 static_assert(std::is_trivially_copyable<SDValue>::value, "trivially copyable");
24 static_assert(std::is_trivially_copyable<SlotIndex>::value,
25 "trivially copyable");
26 static_assert(std::is_trivially_copyable<IdentifyingPassPtr>::value,
27 "trivially copyable");
28 #endif