Kevin Enderby | 10ba041 | 2015-02-04 21:38:42 +0000 | [diff] [blame] | 1 | RUN: llvm-objdump -m -section __TEXT,__cstring %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s |
Kevin Enderby | ab5e6c9 | 2015-03-17 21:07:39 +0000 | [diff] [blame] | 2 | RUN: llvm-objdump -m -section __TEXT,__cstring -no-leading-addr %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s -check-prefix=NO_ADDR |
Kevin Enderby | f064075 | 2015-03-13 17:56:32 +0000 | [diff] [blame] | 3 | RUN: llvm-objdump -m -section __TEXT,__cstring -non-verbose %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s -check-prefix=NON_VERBOSE |
Kevin Enderby | 10ba041 | 2015-02-04 21:38:42 +0000 | [diff] [blame] | 4 | |
| 5 | CHECK: Contents of (__TEXT,__cstring) section |
Kevin Enderby | 578fe5a | 2015-02-17 21:35:48 +0000 | [diff] [blame] | 6 | CHECK: 000000000000003b Hello world\n |
Kevin Enderby | f064075 | 2015-03-13 17:56:32 +0000 | [diff] [blame] | 7 | |
Kevin Enderby | ab5e6c9 | 2015-03-17 21:07:39 +0000 | [diff] [blame] | 8 | NO_ADDR: Contents of (__TEXT,__cstring) section |
| 9 | NO_ADDR: Hello world\n |
| 10 | NO_ADDR-NOT: 000000000000003b |
| 11 | |
Kevin Enderby | f064075 | 2015-03-13 17:56:32 +0000 | [diff] [blame] | 12 | NON_VERBOSE: Contents of (__TEXT,__cstring) section |
| 13 | NON_VERBOSE: 000000000000003b 48 65 6c 6c 6f 20 77 6f 72 6c 64 0a 00 |