macho-cstring-dump.test 674 B

12345678910111213
  1. RUN: llvm-objdump -m -section __TEXT,__cstring %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
  2. RUN: llvm-objdump -m -section __TEXT,__cstring -no-leading-addr %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s -check-prefix=NO_ADDR
  3. RUN: llvm-objdump -m -section __TEXT,__cstring -non-verbose %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s -check-prefix=NON_VERBOSE
  4. CHECK: Contents of (__TEXT,__cstring) section
  5. CHECK: 000000000000003b Hello world\n
  6. NO_ADDR: Contents of (__TEXT,__cstring) section
  7. NO_ADDR: Hello world\n
  8. NO_ADDR-NOT: 000000000000003b
  9. NON_VERBOSE: Contents of (__TEXT,__cstring) section
  10. NON_VERBOSE: 000000000000003b 48 65 6c 6c 6f 20 77 6f 72 6c 64 0a 00