//===- unittests/Support/EndianTest.cpp - Endian.h tests ------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "llvm/Support/Endian.h" #include "llvm/Support/DataTypes.h" #include "gtest/gtest.h" #include <cstdlib> #include <ctime> usingnamespacellvm; usingnamespacesupport; #undef max namespace { TEST(Endian, Read) { … } TEST(Endian, WriteNext) { … } TEST(Endian, ReadBitAligned) { … } TEST(Endian, WriteBitAligned) { … } TEST(Endian, Write) { … } TEST(Endian, PackedEndianSpecificIntegral) { … } TEST(Endian, PacketEndianSpecificIntegralAsEnum) { … } } // end anon namespace