1 # RUN: yaml2obj %s -o %t.obj
2 # RUN: not lld-link /out:%t.exe /entry:main /includeoptional:undeffunc %t.obj /verbose 2>&1 | FileCheck %s
4 # CHECK: error: undefined symbol: undeffunc
8 Machine: IMAGE_FILE_MACHINE_AMD64
12 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
14 SectionData: B800000000506800000000680000000050E80000000050E800000000
18 Type: IMAGE_REL_AMD64_REL32
23 SimpleType: IMAGE_SYM_TYPE_NULL
24 ComplexType: IMAGE_SYM_DTYPE_NULL
25 StorageClass: IMAGE_SYM_CLASS_STATIC
28 NumberOfRelocations: 1
29 NumberOfLinenumbers: 0
35 SimpleType: IMAGE_SYM_TYPE_NULL
36 ComplexType: IMAGE_SYM_DTYPE_NULL
37 StorageClass: IMAGE_SYM_CLASS_EXTERNAL
41 SimpleType: IMAGE_SYM_TYPE_NULL
42 ComplexType: IMAGE_SYM_DTYPE_NULL
43 StorageClass: IMAGE_SYM_CLASS_EXTERNAL