Bump version to 19.1.0-rc3
[llvm-project.git] / llvm / unittests / Object / ObjectFileTest.cpp
blob7309c2c25287cbfc0c192e3d43ee543f972655a7
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 //===----------------------------------------------------------------------===//
9 #include "llvm/Object/ObjectFile.h"
10 #include "llvm/Support/ScopedPrinter.h"
11 #include "gtest/gtest.h"
13 using namespace llvm;
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}));