diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:19:15 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:19:15 +0000 |
commit | d93e1dfac8711cfed1a9d9cd1876a788b83945cd (patch) | |
tree | 5896fa6c02a262a6148b215487e545d937de58b7 /test/ELF/mips-n32-emul.s | |
parent | 8d43286d630f9224de07809ea253e83ebb9cdee6 (diff) |
Notes
Diffstat (limited to 'test/ELF/mips-n32-emul.s')
-rw-r--r-- | test/ELF/mips-n32-emul.s | 14 |
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 0000000000000..d0d81cc1c95fa --- /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 |