xref: /llvm-project/llvm/test/tools/llvm-readobj/MachO/hex-dump.test (revision fff9f049b2e91ce6e670d767866ee4670a4fed31)
1## Test that --hex-dump/-x can be used to display the contents
2## of the indicated section as hexadecimal bytes.
3
4# RUN: llvm-readobj -x 1 %p/Inputs/trivial.obj.macho-x86-64 | FileCheck %s
5# RUN: llvm-readobj --hex-dump 1 %p/Inputs/trivial.obj.macho-x86-64 | FileCheck %s
6
7# CHECK: 0x00000000 50488d3d 00000000 e8000000 00e80000 PH.=............
8# CHECK: 0x00000010 000031c0 5ac3                       ..1.Z.
9