1 # RUN: yaml2obj %s -o %t.main.obj
2 # RUN: yaml2obj %p/Inputs/include1c.yaml -o %t.lib.obj
3 # RUN: rm -f %t.lib.lib
4 # RUN: llvm-ar cru %t.lib.lib %t.lib.obj
5 # RUN: lld-link /out:%t.exe /entry:main /includeoptional:bar /includeoptional:actuallymissing %t.main.obj %t.lib.lib /verbose >& %t.log
6 # RUN: FileCheck %s < %t.log
8 # CHECK: includeoptional.yaml.tmp.main.obj
9 # CHECK: includeoptional.yaml.tmp.lib.lib
10 # CHECK: includeoptional.yaml.tmp.lib.lib(includeoptional.yaml.tmp.lib.obj) for bar
13 Machine: IMAGE_FILE_MACHINE_AMD64
17 Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
19 SectionData: B800000000506800000000680000000050E80000000050E800000000
24 SimpleType: IMAGE_SYM_TYPE_NULL
25 ComplexType: IMAGE_SYM_DTYPE_NULL
26 StorageClass: IMAGE_SYM_CLASS_STATIC
29 NumberOfRelocations: 4
30 NumberOfLinenumbers: 0
36 SimpleType: IMAGE_SYM_TYPE_NULL
37 ComplexType: IMAGE_SYM_DTYPE_NULL
38 StorageClass: IMAGE_SYM_CLASS_EXTERNAL