summaryrefslogtreecommitdiff
path: root/test/pecoff/conflicting-machine.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/pecoff/conflicting-machine.test')
-rw-r--r--test/pecoff/conflicting-machine.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/pecoff/conflicting-machine.test b/test/pecoff/conflicting-machine.test
new file mode 100644
index 0000000000000..6c71521fe1b7f
--- /dev/null
+++ b/test/pecoff/conflicting-machine.test
@@ -0,0 +1,6 @@
+# RUN: yaml2obj %p/Inputs/vars-main-x64.obj.yaml > %t-x64.obj
+
+# RUN: not lld -flavor link /machine:x86 /out:%t.exe /entry:main %t-x64.obj 2>&1 \
+# RUN: | FileCheck %s
+
+CHECK: module machine type 'X64' conflicts with target machine type 'X86'