1 ## Test bitcode segment is not removed when not empty.
2 # RUN: yaml2obj %s -o %t
3 # RUN: llvm-bitcode-strip -r %t -o %t2
4 # RUN: llvm-readobj --macho-segment --sections %t2 | FileCheck --implicit-check-not=Name: %s
7 # CHECK-NEXT: Segment: __TEXT
8 # CHECK: Name: __bundle
9 # CHECK-NEXT: Segment: __DATA
10 # CHECK: Name: __notbundle
11 # CHECK-NEXT: Segment: __LLVM
12 # CHECK: Cmd: LC_SEGMENT_64
13 # CHECK-NEXT: Name: __TEXT
14 # CHECK: Cmd: LC_SEGMENT_64
15 # CHECK-NEXT: Name: __DATA
16 # CHECK: Cmd: LC_SEGMENT_64
17 # CHECK-NEXT: Name: __LLVM
23 cpusubtype: 0x00000003
44 addr: 0x0000000000000000
69 addr: 0x0000000000000004
94 addr: 0x0000000000000008
102 reserved1: 0x00000000
103 reserved2: 0x00000000
104 reserved3: 0x00000000
105 - sectname: __notbundle
107 addr: 0x0000000000000008
115 reserved1: 0x00000000
116 reserved2: 0x00000000
117 reserved3: 0x00000000