1*c0fc29c4SPavel Labath //===- ObjectFileTest.cpp - Tests for ObjectFile.cpp ----------------------===// 2*c0fc29c4SPavel Labath // 3*c0fc29c4SPavel Labath // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*c0fc29c4SPavel Labath // See https://llvm.org/LICENSE.txt for license information. 5*c0fc29c4SPavel Labath // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*c0fc29c4SPavel Labath // 7*c0fc29c4SPavel Labath //===----------------------------------------------------------------------===// 8*c0fc29c4SPavel Labath 9*c0fc29c4SPavel Labath #include "llvm/Object/ObjectFile.h" 10*c0fc29c4SPavel Labath #include "llvm/Support/ScopedPrinter.h" 11*c0fc29c4SPavel Labath #include "gtest/gtest.h" 12*c0fc29c4SPavel Labath 13*c0fc29c4SPavel Labath using namespace llvm; 14*c0fc29c4SPavel Labath using namespace llvm::object; 15*c0fc29c4SPavel Labath TEST(SectionedAddress,StreamingOperator)16*c0fc29c4SPavel LabathTEST(SectionedAddress, StreamingOperator) { 17*c0fc29c4SPavel Labath EXPECT_EQ("SectionedAddress{0x00000047}", to_string(SectionedAddress{0x47})); 18*c0fc29c4SPavel Labath EXPECT_EQ("SectionedAddress{0x00000047, 42}", 19*c0fc29c4SPavel Labath to_string(SectionedAddress{0x47, 42})); 20*c0fc29c4SPavel Labath } 21