//===----- unittests/RISCVAttributeParserTest.cpp -------------------------===// // // 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/RISCVAttributeParser.h" #include "llvm/Support/ARMBuildAttributes.h" #include "llvm/Support/ELFAttributes.h" #include "gtest/gtest.h" #include <string> usingnamespacellvm; struct RISCVAttributeSection { … }; static bool testAttribute(unsigned Tag, unsigned Value, unsigned ExpectedTag, unsigned ExpectedValue) { … } static bool testTagString(unsigned Tag, const char *name) { … } TEST(StackAlign, testAttribute) { … } TEST(UnalignedAccess, testAttribute) { … }