1 # RUN: yaml2obj %s -o %t.obj
2 # RUN: not lld-link /out:%t.exe /entry:main %t.obj >& %t.log
3 # RUN: FileCheck -check-prefix=ERROR %s < %t.log
4 # RUN: lld-link /out:%t.exe /entry:main %t.obj /force >& %t.log
5 # RUN: FileCheck -check-prefix=WARN %s < %t.log
7 # ERROR: error: undefined symbol: foo
8 # ERROR-NEXT: >>> referenced by {{.*}}.obj
9 # WARN: warning: undefined symbol: foo
10 # WARN-NEXT: >>> referenced by {{.*}}.obj
14 Machine: IMAGE_FILE_MACHINE_AMD64
18 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
20 SectionData: 000000000000
25 SimpleType: IMAGE_SYM_TYPE_NULL
26 ComplexType: IMAGE_SYM_DTYPE_NULL
27 StorageClass: IMAGE_SYM_CLASS_STATIC
30 NumberOfRelocations: 0
31 NumberOfLinenumbers: 0
37 SimpleType: IMAGE_SYM_TYPE_NULL
38 ComplexType: IMAGE_SYM_DTYPE_NULL
39 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
43 SimpleType: IMAGE_SYM_TYPE_NULL
44 ComplexType: IMAGE_SYM_DTYPE_NULL
45 StorageClass: IMAGE_SYM_CLASS_EXTERNAL