blob: 0e19f51d6a63a36d3d9ff34bc6388c789a60562c [file] [log] [blame]
Kevin Enderby10ba0412015-02-04 21:38:42 +00001RUN: llvm-objdump -m -section __TEXT,__cstring %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
Kevin Enderbyab5e6c92015-03-17 21:07:39 +00002RUN: llvm-objdump -m -section __TEXT,__cstring -no-leading-addr %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s -check-prefix=NO_ADDR
Kevin Enderbyf0640752015-03-13 17:56:32 +00003RUN: llvm-objdump -m -section __TEXT,__cstring -non-verbose %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s -check-prefix=NON_VERBOSE
Kevin Enderby10ba0412015-02-04 21:38:42 +00004
5CHECK: Contents of (__TEXT,__cstring) section
Kevin Enderby578fe5a2015-02-17 21:35:48 +00006CHECK: 000000000000003b Hello world\n
Kevin Enderbyf0640752015-03-13 17:56:32 +00007
Kevin Enderbyab5e6c92015-03-17 21:07:39 +00008NO_ADDR: Contents of (__TEXT,__cstring) section
9NO_ADDR: Hello world\n
10NO_ADDR-NOT: 000000000000003b
11
Kevin Enderbyf0640752015-03-13 17:56:32 +000012NON_VERBOSE: Contents of (__TEXT,__cstring) section
13NON_VERBOSE: 000000000000003b 48 65 6c 6c 6f 20 77 6f 72 6c 64 0a 00