1 # Tests that /ignore:4217 suppresses "locally defined symbol imported" warnings.
2 # RUN: yaml2obj %s -o %t.obj
4 # RUN: lld-link -entry:main -out:%t.exe %t.obj 2>&1 \
5 # RUN: | FileCheck -check-prefix=WARNINGS %s
6 # RUN: lld-link -ignore:4217 -entry:main -out:%t.exe %t.obj 2>&1 \
7 # RUN: | FileCheck -allow-empty -check-prefix=SUPPRESSED %s
9 # WARNINGS: locally defined symbol imported
10 # SUPPRESSED-NOT: locally defined symbol imported
14 Machine: IMAGE_FILE_MACHINE_AMD64
18 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
20 SectionData: B82A000000C3662E0F1F8400000000004883EC28C744242400000000E800000000904883C428C3
24 Type: IMAGE_REL_AMD64_REL32
26 Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
33 SimpleType: IMAGE_SYM_TYPE_NULL
34 ComplexType: IMAGE_SYM_DTYPE_NULL
35 StorageClass: IMAGE_SYM_CLASS_STATIC
38 NumberOfRelocations: 1
39 NumberOfLinenumbers: 0
45 SimpleType: IMAGE_SYM_TYPE_NULL
46 ComplexType: IMAGE_SYM_DTYPE_NULL
47 StorageClass: IMAGE_SYM_CLASS_STATIC
50 NumberOfRelocations: 0
51 NumberOfLinenumbers: 0
57 SimpleType: IMAGE_SYM_TYPE_NULL
58 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
59 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
63 SimpleType: IMAGE_SYM_TYPE_NULL
64 ComplexType: IMAGE_SYM_DTYPE_FUNCTION
65 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
69 SimpleType: IMAGE_SYM_TYPE_NULL
70 ComplexType: IMAGE_SYM_DTYPE_NULL
71 StorageClass: IMAGE_SYM_CLASS_EXTERNAL