diff options
Diffstat (limited to 'llvm/test/tools/llvm-readobj/MachO/hex-dump.test')
-rw-r--r-- | llvm/test/tools/llvm-readobj/MachO/hex-dump.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-readobj/MachO/hex-dump.test b/llvm/test/tools/llvm-readobj/MachO/hex-dump.test new file mode 100644 index 00000000000..c2895d46d31 --- /dev/null +++ b/llvm/test/tools/llvm-readobj/MachO/hex-dump.test @@ -0,0 +1,8 @@ +## 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. |