summaryrefslogtreecommitdiff
path: root/test/COFF/arm-thumb-branch20-error.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/COFF/arm-thumb-branch20-error.s')
-rw-r--r--test/COFF/arm-thumb-branch20-error.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/COFF/arm-thumb-branch20-error.s b/test/COFF/arm-thumb-branch20-error.s
new file mode 100644
index 0000000000000..ec7d23b053291
--- /dev/null
+++ b/test/COFF/arm-thumb-branch20-error.s
@@ -0,0 +1,10 @@
+// REQUIRES: arm
+// RUN: llvm-mc -filetype=obj -triple=thumbv7a-windows-gnu %s -o %t.obj
+// RUN: llvm-mc -filetype=obj -triple=thumbv7a-windows-gnu %S/Inputs/far-arm-thumb-abs20.s -o %t.far.obj
+// RUN: not lld-link -entry:_start -subsystem:console %t.obj %t.far.obj -out:%t.exe 2>&1 | FileCheck %s
+ .syntax unified
+ .globl _start
+_start:
+ bne too_far20
+
+// CHECK: relocation out of range