1 ## Show that -m/--format=darwin produces darwin-style output.
3 # RUN: yaml2obj %s --docnum=1 -o %t
4 # RUN: yaml2obj %s --docnum=2 -o %t2
5 # RUN: llvm-size -m %t \
6 # RUN: | FileCheck --check-prefix=DARWIN %s --implicit-check-not={{.}} \
7 # RUN: --strict-whitespace --match-full-lines
8 # RUN: llvm-size -m %t %t2 \
9 # RUN: | FileCheck --check-prefixes=DARWIN,DARWIN2 %s --implicit-check-not={{.}} \
10 # RUN: -DFILE1=%t -DFILE2=%t2 --strict-whitespace --match-full-lines
11 # RUN: llvm-size --format=darwin %t \
12 # RUN: | FileCheck --check-prefix=DARWIN %s --implicit-check-not={{.}} \
13 # RUN: --strict-whitespace --match-full-lines
14 # RUN: llvm-size --format=darwin %t %t2 \
15 # RUN: | FileCheck --check-prefixes=DARWIN,DARWIN2 %s --implicit-check-not={{.}} \
16 # RUN: -DFILE1=%t -DFILE2=%t2 --strict-whitespace --match-full-lines
20 # DARWIN-NEXT: Section (__TEXT, __text): 4
21 # DARWIN-NEXT: Section (__DATA, __data): 8
22 # DARWIN-NEXT: total 12
23 # DARWIN-NEXT:total 12
25 # DARWIN2-NEXT:Segment : 48
26 # DARWIN2-NEXT: Section (__TEXT, __text): 16
27 # DARWIN2-NEXT: Section (__DATA, __data): 32
28 # DARWIN2-NEXT: total 48
29 # DARWIN2-NEXT:total 48
35 cpusubtype: 0x00000009
55 addr: 0x0000000000000000
67 addr: 0x0000000000000004
82 cpusubtype: 0x00000009
102 addr: 0x0000000000000000
109 reserved1: 0x00000000
110 reserved2: 0x00000000
111 reserved3: 0x00000000
114 addr: 0x0000000000000010
121 reserved1: 0x00000000
122 reserved2: 0x00000000
123 reserved3: 0x00000000