1 //===- ObjectFileTest.cpp - Tests for ObjectFile.cpp ----------------------===//
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
7 //===----------------------------------------------------------------------===//
9 #include "llvm/Object/ObjectFile.h"
10 #include "llvm/Support/ScopedPrinter.h"
11 #include "gtest/gtest.h"
14 using namespace llvm::object
;
16 TEST(SectionedAddress
, StreamingOperator
) {
17 EXPECT_EQ("SectionedAddress{0x00000047}", to_string(SectionedAddress
{0x47}));
18 EXPECT_EQ("SectionedAddress{0x00000047, 42}",
19 to_string(SectionedAddress
{0x47, 42}));