diff options
Diffstat (limited to 'test/MC/ARM/Windows/invalid-relocation.s')
-rw-r--r-- | test/MC/ARM/Windows/invalid-relocation.s | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/MC/ARM/Windows/invalid-relocation.s b/test/MC/ARM/Windows/invalid-relocation.s new file mode 100644 index 0000000..4f4c598 --- /dev/null +++ b/test/MC/ARM/Windows/invalid-relocation.s @@ -0,0 +1,14 @@ +# RUN: not llvm-mc -triple thumbv7-windows -filetype obj -o /dev/null 2>&1 %s \ +# RUN: | FileCheck %s + + .def invalid_relocation + .type 32 + .scl 2 + .endef + .global invalid_relocation + .thumb_func +invalid_relocation: + adr r0, invalid_relocation+1 + +# CHECK: LLVM ERROR: unsupported relocation type: fixup_t2_adr_pcrel_12 + |