2 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
4 # RUN: llvm-readobj --section-headers --macho-segment %t | FileCheck %s
7 # CHECK-NEXT: Segment: __TEXT
11 # CHECK: Type: Regular (0x0)
12 # CHECK-NEXT: Attributes [ (0x800004)
13 # CHECK-NEXT: PureInstructions (0x800000)
14 # CHECK-NEXT: SomeInstructions (0x4)
17 # CHECK: Name: __cstring
18 # CHECK-NEXT: Segment: __TEXT
22 # CHECK: Type: CStringLiterals (0x2)
23 # CHECK-NEXT: Attributes [ (0x0)
26 # CHECK: Name: maxlen_16ch_name
27 # CHECK-NEXT: Segment: __TEXT
28 # CHECK-NEXT: Address:
31 # CHECK-NEXT: Alignment: 3
33 # CHECK: Type: Regular (0x0)
35 # CHECK-LABEL: Segment {
40 # CHECK-NEXT: fileoff: 0
41 # CHECK-NEXT: filesize: 4096
50 .section __TEXT,__cstring
53 .asciz "Hello world!\n"
55 .section __TEXT,maxlen_16ch_name