Compiler projects using llvm
## Check how llvm-dwarfdump calculates section sizes with
## --show-section-sizes in the case there isn't any debug section.

# RUN: yaml2obj %s | llvm-dwarfdump - --show-section-sizes \
# RUN:   | FileCheck %s --match-full-lines --strict-whitespace

#      CHECK:----------------------------------------------------
# CHECK-NEXT:file: {{.*}}
# CHECK-NEXT:----------------------------------------------------
# CHECK-NEXT:SECTION  SIZE (b)
# CHECK-NEXT:-------  --------
# CHECK-EMPTY:
# CHECK-NEXT: Total Size: 0  (0.00%)
# CHECK-NEXT: Total File Size: 456
# CHECK-NEXT:----------------------------------------------------

--- !ELF
FileHeader:
  Class:   ELFCLASS64
  Data:    ELFDATA2LSB
  Type:    ET_REL
  Machine: EM_X86_64
Sections:
  - Name: .foo
    Type: SHT_PROGBITS
    Size: 17
  - Name: .bar
    Type: SHT_PROGBITS
    Size: 19