[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / COFF / safeseh-diag-feat.test
blobed928a51350a5f28d4a1a148e78ee5bc88402675
1 # RUN: sed s/FEAT_VALUE/1/ %s | yaml2obj > %t.obj
2 # RUN: lld-link /out:%t.exe /subsystem:console /entry:main /safeseh %t.obj
4 # RUN: sed s/FEAT_VALUE/0/ %s | yaml2obj > %t.obj
5 # RUN: not lld-link /out:%t.exe /subsystem:console /entry:main \
6 # RUN:   /safeseh %t.obj >& %t.log
7 # RUN: FileCheck %s < %t.log
9 # CHECK: /safeseh: {{.*}} is not compatible with SEH
11 --- !COFF
12 header:
13   Machine:         IMAGE_FILE_MACHINE_I386
14   Characteristics: [  ]
15 sections:
16   - Name:            .text
17     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
18     Alignment:       1
19     SectionData:     0000000000000000
20 symbols:
21   - Name:            '@comp.id'
22     Value:           14766605
23     SectionNumber:   65535
24     SimpleType:      IMAGE_SYM_TYPE_NULL
25     ComplexType:     IMAGE_SYM_DTYPE_NULL
26     StorageClass:    IMAGE_SYM_CLASS_STATIC
27   - Name:            '@feat.00'
28     Value:           FEAT_VALUE
29     SectionNumber:   65535
30     SimpleType:      IMAGE_SYM_TYPE_NULL
31     ComplexType:     IMAGE_SYM_DTYPE_NULL
32     StorageClass:    IMAGE_SYM_CLASS_STATIC
33   - Name:            .text
34     Value:           0
35     SectionNumber:   1
36     SimpleType:      IMAGE_SYM_TYPE_NULL
37     ComplexType:     IMAGE_SYM_DTYPE_NULL
38     StorageClass:    IMAGE_SYM_CLASS_STATIC
39     SectionDefinition:
40       Length:          8
41       NumberOfRelocations: 0
42       NumberOfLinenumbers: 0
43       CheckSum:        0
44       Number:          0
45   - Name:            _main
46     Value:           0
47     SectionNumber:   1
48     SimpleType:      IMAGE_SYM_TYPE_NULL
49     ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
50     StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
51 ...