summaryrefslogtreecommitdiff
path: root/test/ELF/mips-n32-emul.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/mips-n32-emul.s')
-rw-r--r--test/ELF/mips-n32-emul.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/ELF/mips-n32-emul.s b/test/ELF/mips-n32-emul.s
new file mode 100644
index 000000000000..d0d81cc1c95f
--- /dev/null
+++ b/test/ELF/mips-n32-emul.s
@@ -0,0 +1,14 @@
+# Check that LLD shows an error when N32 ABI emulation argument
+# is combined with non-N32 ABI object files.
+
+# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
+# RUN: not ld.lld -m elf32btsmipn32 %t.o -o %t.exe 2>&1 | FileCheck %s
+
+# REQUIRES: mips
+
+ .text
+ .global __start
+__start:
+ nop
+
+# CHECK: error: {{.*}}mips-n32-emul.s.tmp.o is incompatible with elf32btsmipn32