1 //===- ObjectFileTest.cpp - Tests for ObjectFile.cpp ----------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #include "llvm/Object/ObjectFile.h"
10 #include "llvm/Support/ScopedPrinter.h"
11 #include "gtest/gtest.h"
12 
13 using namespace llvm;
14 using namespace llvm::object;
15 
TEST(SectionedAddress,StreamingOperator)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}));
20 }
21