//===- ASanStackFrameLayoutTest.cpp - Tests for ComputeASanStackFrameLayout===// // // 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/Transforms/Utils/ASanStackFrameLayout.h" #include "llvm/ADT/ArrayRef.h" #include "gtest/gtest.h" #include <sstream> usingnamespacellvm; static std::string ShadowBytesToString(ArrayRef<uint8_t> ShadowBytes) { … } // Use macro to preserve line information in EXPECT_EQ output. #define TEST_LAYOUT … TEST(ASanStackFrameLayout, Test) { … }