summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-size/elf-m.test
blob: c18184feb1226c0f67b65068cfe3dd1da6f984df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## Show that llvm-size falls back to Berkeley output if --format=darwin is
## specified and the input is not Mach-O.

# RUN: yaml2obj %s -o %t
# RUN: llvm-size -m %t | FileCheck %s
# RUN: llvm-size --format=darwin %t | FileCheck %s

## FIXME: The input filename should be printed but isn't currently due to
##        https://bugs.llvm.org/show_bug.cgi?id=42971.
# CHECK:         text    data     bss     dec     hex filename
# CHECK-NEXT:       0       0       0       0       0

--- !ELF
FileHeader:
  Class:   ELFCLASS64
  Data:    ELFDATA2LSB
  Type:    ET_REL
  Machine: EM_X86_64
OpenPOWER on IntegriCloud