[flang][cuda] Do not register global constants (#118582)
[llvm-project.git] / llvm / test / tools / llvm-dwarfdump / X86 / section_sizes_coff.test
blob3f584dec439f7d1293b20400f79033f2d53c1853
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%)
15 # CHECK-EMPTY:
16 # CHECK-NEXT: Total Size: 4  (1.40%)
17 # CHECK-NEXT: Total File Size: 286
18 # CHECK-NEXT:----------------------------------------------------
20 --- !COFF
21 header:
22   Machine:         IMAGE_FILE_MACHINE_AMD64
23 sections:
24   - Name:            .bss
25     Characteristics: []
26     SectionData:     ''
27   - Name:            .debug_str
28     Characteristics: []
29     SectionData:     00
30   - Name:            .debug_abbrev
31     Characteristics: []
32     Alignment:       1
33     SectionData:     00
34   - Name:            .debug_info
35     Characteristics: []
36     SectionData:     1111
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.
39   - Name:            __debug_foo
40     Characteristics: []
41     SectionData:     00
42 symbols:
43 ...