summaryrefslogtreecommitdiff
path: root/test/pecoff/include.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/pecoff/include.test')
-rw-r--r--test/pecoff/include.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/pecoff/include.test b/test/pecoff/include.test
new file mode 100644
index 000000000000..bee1f48bf1a7
--- /dev/null
+++ b/test/pecoff/include.test
@@ -0,0 +1,8 @@
+# RUN: yaml2obj %p/Inputs/nop.obj.yaml > %t.obj
+#
+# RUN: not lld -flavor link /out:%t.exe /include:sym1 /include:sym2 \
+# RUN: /subsystem:console -- %t.obj 2> %t.log
+# RUN: FileCheck %s < %t.log
+
+CHECK: Undefined symbol: <command line option /include>: sym1
+CHECK: Undefined symbol: <command line option /include>: sym2