TypeTraitsTest.cpp 1.1 KB

12345678910111213141516171819202122232425
  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. #include "llvm/CodeGen/RegisterPressure.h"
  9. #include "llvm/CodeGen/ScheduleDAG.h"
  10. #include "llvm/CodeGen/SelectionDAGNodes.h"
  11. #include "llvm/CodeGen/SlotIndexes.h"
  12. #include "llvm/CodeGen/TargetPassConfig.h"
  13. #include "gtest/gtest.h"
  14. using namespace llvm;
  15. #if __has_feature(is_trivially_copyable) || (defined(__GNUC__) && __GNUC__ >= 5)
  16. static_assert(is_trivially_copyable<PressureChange>::value, "trivially copyable");
  17. static_assert(is_trivially_copyable<SDep>::value, "trivially copyable");
  18. static_assert(is_trivially_copyable<SDValue>::value, "trivially copyable");
  19. static_assert(is_trivially_copyable<SlotIndex>::value, "trivially copyable");
  20. static_assert(is_trivially_copyable<IdentifyingPassPtr>::value, "trivially copyable");
  21. #endif