summaryrefslogtreecommitdiffstats
path: root/lld/test/wasm/lto/incompatible.ll
diff options
context:
space:
mode:
Diffstat (limited to 'lld/test/wasm/lto/incompatible.ll')
-rw-r--r--lld/test/wasm/lto/incompatible.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/lld/test/wasm/lto/incompatible.ll b/lld/test/wasm/lto/incompatible.ll
new file mode 100644
index 00000000000..ee98cb4b4e6
--- /dev/null
+++ b/lld/test/wasm/lto/incompatible.ll
@@ -0,0 +1,8 @@
+; REQUIRES: x86
+; RUN: llvm-as %s -o %t.bc
+; RUN: not wasm-ld %t.bc -o out.wasm 2>&1 | FileCheck %s
+
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
+
+; CHECK: {{.*}}incompatible.ll.tmp.bc: machine type must be wasm32
OpenPOWER on IntegriCloud