Files
clang-p2996/llvm/test/tools/llvm-readobj/MachO/hex-dump.test
Georgii Rymar fff9f049b2 [llvm-readobj][test] - Cleanup and split tests in tools/llvm-readobj folder.
tools/llvm-readobj currently contains tests that are either general for
all file types or that mix file types inside. This patch refactors
these test and leaves only general tests in that folder. All other
tests were moved to ELF/COFF/MachO and wasm accordingly.

I tried to minimize amount of changes, so most of the test parts
remained unchanged. Any further refactorings and improvements for
particular tests should be done independently from this patch.

Differential revision: https://reviews.llvm.org/D71269
2019-12-12 12:21:58 +03:00

9 lines
409 B
Plaintext

## Test that --hex-dump/-x can be used to display the contents
## of the indicated section as hexadecimal bytes.
# RUN: llvm-readobj -x 1 %p/Inputs/trivial.obj.macho-x86-64 | FileCheck %s
# RUN: llvm-readobj --hex-dump 1 %p/Inputs/trivial.obj.macho-x86-64 | FileCheck %s
# CHECK: 0x00000000 50488d3d 00000000 e8000000 00e80000 PH.=............
# CHECK: 0x00000010 000031c0 5ac3 ..1.Z.