[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / COFF / seh.test
blob2c0f063e422018c23ecc72405908eb2d41abdfe9
1 # RUN: yaml2obj %s -o %t.obj
2 # RUN: lld-link /out:%t.exe /subsystem:console /entry:main %t.obj
3 # RUN: llvm-objdump -s %t.exe | FileCheck %s
5 # CHECK: Contents of section .rdata:
6 # CHECK:  1000 00200000 02200000
8 --- !COFF
9 header:
10   Machine:         IMAGE_FILE_MACHINE_I386
11   Characteristics: [  ]
12 sections:
13   - Name:            .text
14     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
15     Alignment:       1
16     SectionData:     0000000000000000
17   - Name:            .sxdata
18     Characteristics: [ IMAGE_SCN_LNK_INFO ]
19     Alignment:       4
20     SectionData:     0600000007000000
21 symbols:
22   - Name:            '@comp.id'
23     Value:           14766605
24     SectionNumber:   65535
25     SimpleType:      IMAGE_SYM_TYPE_NULL
26     ComplexType:     IMAGE_SYM_DTYPE_NULL
27     StorageClass:    IMAGE_SYM_CLASS_STATIC
28   - Name:            '@feat.00'
29     Value:           2147484049
30     SectionNumber:   65535
31     SimpleType:      IMAGE_SYM_TYPE_NULL
32     ComplexType:     IMAGE_SYM_DTYPE_NULL
33     StorageClass:    IMAGE_SYM_CLASS_STATIC
34   - Name:            .text
35     Value:           0
36     SectionNumber:   1
37     SimpleType:      IMAGE_SYM_TYPE_NULL
38     ComplexType:     IMAGE_SYM_DTYPE_NULL
39     StorageClass:    IMAGE_SYM_CLASS_STATIC
40     SectionDefinition:
41       Length:          8
42       NumberOfRelocations: 0
43       NumberOfLinenumbers: 0
44       CheckSum:        0
45       Number:          0
46   - Name:            .sxdata
47     Value:           0
48     SectionNumber:   2
49     SimpleType:      IMAGE_SYM_TYPE_NULL
50     ComplexType:     IMAGE_SYM_DTYPE_NULL
51     StorageClass:    IMAGE_SYM_CLASS_STATIC
52     SectionDefinition:
53       Length:          8
54       NumberOfRelocations: 0
55       NumberOfLinenumbers: 0
56       CheckSum:        0
57       Number:          0
58   - Name:            _main
59     Value:           0
60     SectionNumber:   1
61     SimpleType:      IMAGE_SYM_TYPE_NULL
62     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
63     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
64   - Name:            _foo
65     Value:           2
66     SectionNumber:   1
67     SimpleType:      IMAGE_SYM_TYPE_NULL
68     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
69     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
70 ...