1# RUN: yaml2obj < %p/Inputs/include1a.yaml > %t1.obj
2# RUN: yaml2obj < %p/Inputs/include1b.yaml > %t2.obj
3# RUN: yaml2obj < %p/Inputs/include1c.yaml > %t3.obj
4# RUN: rm -f %t2.lib %t3.lib
5# RUN: llvm-ar cru %t2.lib %t2.obj
6# RUN: llvm-ar cru %t3.lib %t3.obj
7# RUN: lld-link /out:%t.exe /entry:main \
8# RUN:   %t1.obj %t2.lib %t3.obj %t3.lib /verbose >& %t.log
9# RUN: FileCheck %s < %t.log
10
11CHECK: section-order.test.tmp1.obj
12CHECK: section-order.test.tmp2.lib
13CHECK: section-order.test.tmp3.obj
14CHECK: section-order.test.tmp3.lib
15CHECK: section-order.test.tmp2.lib(section-order.test.tmp2.obj) for foo
16