1 ## Show that llvm-size prints the total sizes when --totals is specified.
4 # RUN: yaml2obj %s --docnum=1 -o %t.o
5 # RUN: yaml2obj %s --docnum=2 -o %t2.o
6 # RUN: llvm-ar rc %t.a %t.o %t2.o
7 # RUN: llvm-size --totals %t.o %t.a %t2.o \
8 # RUN: | FileCheck %s -DFILE1=%t.o -DFILE2=%t2.o -DARCHIVE=%t.a
9 # RUN: llvm-size -t %t.o %t.a %t2.o \
10 # RUN: | FileCheck %s -DFILE1=%t.o -DFILE2=%t2.o -DARCHIVE=%t.a
12 # CHECK: text data bss dec hex filename
13 # CHECK-NEXT: [[FILE1]]
14 # CHECK-NEXT: {{.*}}.o (ex [[ARCHIVE]])
15 # CHECK-NEXT: {{.*}}2.o (ex [[ARCHIVE]])
16 # CHECK-NEXT: [[FILE2]]
17 # CHECK-NEXT: 18 36 72 126 7e (TOTALS)
28 Flags: [SHF_ALLOC, SHF_EXECINSTR]
32 Flags: [SHF_ALLOC, SHF_WRITE]
36 Flags: [SHF_ALLOC, SHF_WRITE]
48 Flags: [SHF_ALLOC, SHF_EXECINSTR]
52 Flags: [SHF_ALLOC, SHF_WRITE]
56 Flags: [SHF_ALLOC, SHF_WRITE]