xref: /aosp_15_r20/external/llvm/test/tools/llvm-objdump/X86/macho-cstring-dump.test (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard WorkerRUN: llvm-objdump -m -section __TEXT,__cstring %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
2*9880d681SAndroid Build Coastguard WorkerRUN: llvm-objdump -m -section __TEXT,__cstring -no-leading-addr %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s -check-prefix=NO_ADDR
3*9880d681SAndroid Build Coastguard WorkerRUN: llvm-objdump -m -section __TEXT,__cstring -non-verbose %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s -check-prefix=NON_VERBOSE
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard WorkerCHECK: Contents of (__TEXT,__cstring) section
6*9880d681SAndroid Build Coastguard WorkerCHECK: 000000000000003b  Hello world\n
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard WorkerNO_ADDR: Contents of (__TEXT,__cstring) section
9*9880d681SAndroid Build Coastguard WorkerNO_ADDR: Hello world\n
10*9880d681SAndroid Build Coastguard WorkerNO_ADDR-NOT: 000000000000003b
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard WorkerNON_VERBOSE: Contents of (__TEXT,__cstring) section
13*9880d681SAndroid Build Coastguard WorkerNON_VERBOSE: 000000000000003b	48 65 6c 6c 6f 20 77 6f 72 6c 64 0a 00
14