summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/test/pecoff/lib.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/lld/test/pecoff/lib.test b/lld/test/pecoff/lib.test
new file mode 100644
index 00000000000..ab6e5e56cfd
--- /dev/null
+++ b/lld/test/pecoff/lib.test
@@ -0,0 +1,11 @@
+# Verify that lld can handle a library file.
+#
+# RUN: lld -flavor link -out %t1 -subsystem console \
+# RUN: -- %p/Inputs/static-main.obj %p/Inputs/static.lib \
+# RUN: && llvm-objdump -d %t1 | FileCheck %s
+
+CHECK: Disassembly of section .text:
+CHECK: .text:
+CHECK: 1000: a1 00 00 00 00
+CHECK: 1005: 03 05 00 00 00 00
+CHECK: 100b: c3
OpenPOWER on IntegriCloud