summaryrefslogtreecommitdiffstats
path: root/lld/test/COFF/section-order.test
diff options
context:
space:
mode:
Diffstat (limited to 'lld/test/COFF/section-order.test')
-rw-r--r--lld/test/COFF/section-order.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/lld/test/COFF/section-order.test b/lld/test/COFF/section-order.test
new file mode 100644
index 00000000000..2e0279285b7
--- /dev/null
+++ b/lld/test/COFF/section-order.test
@@ -0,0 +1,15 @@
+# RUN: yaml2obj < %p/Inputs/include1a.yaml > %t1.obj
+# RUN: yaml2obj < %p/Inputs/include1b.yaml > %t2.obj
+# RUN: yaml2obj < %p/Inputs/include1c.yaml > %t3.obj
+# RUN: rm -f %t2.lib %t3.lib
+# RUN: llvm-ar cru %t2.lib %t2.obj
+# RUN: llvm-ar cru %t3.lib %t3.obj
+# RUN: lld-link /out:%t.exe /entry:main \
+# RUN: %t1.obj %t2.lib %t3.obj %t3.lib /verbose >& %t.log
+# RUN: FileCheck %s < %t.log
+
+CHECK: section-order.test.tmp1.obj
+CHECK: section-order.test.tmp2.lib
+CHECK: section-order.test.tmp3.obj
+CHECK: section-order.test.tmp3.lib
+CHECK: section-order.test.tmp2.lib(section-order.test.tmp2.obj) for foo
OpenPOWER on IntegriCloud