1 ## Check how llvm-dwarfdump calculates section sizes
2 ## with --show-section-sizes for COFF objects.
4 # RUN: yaml2obj %s | llvm-dwarfdump - --show-section-sizes \
5 # RUN: | FileCheck %s --match-full-lines --strict-whitespace
7 # CHECK:----------------------------------------------------
8 # CHECK-NEXT:file: {{.*}}
9 # CHECK-NEXT:----------------------------------------------------
10 # CHECK-NEXT:SECTION SIZE (b)
11 # CHECK-NEXT:------------- --------
12 # CHECK-NEXT:.debug_str 1 (0.35%)
13 # CHECK-NEXT:.debug_abbrev 1 (0.35%)
14 # CHECK-NEXT:.debug_info 2 (0.70%)
16 # CHECK-NEXT: Total Size: 4 (1.40%)
17 # CHECK-NEXT: Total File Size: 286
18 # CHECK-NEXT:----------------------------------------------------
22 Machine: IMAGE_FILE_MACHINE_AMD64
37 ## This is a debug section following the Mach-O naming style, and is used
38 ## to show that such sections are not included in the report.