summaryrefslogtreecommitdiff
path: root/test/COFF/arm64-dynamicbase.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/COFF/arm64-dynamicbase.s')
-rw-r--r--test/COFF/arm64-dynamicbase.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/COFF/arm64-dynamicbase.s b/test/COFF/arm64-dynamicbase.s
new file mode 100644
index 000000000000..d4cb12c1c8ff
--- /dev/null
+++ b/test/COFF/arm64-dynamicbase.s
@@ -0,0 +1,8 @@
+// REQUIRES: aarch64
+// RUN: llvm-mc -filetype=obj -triple=aarch64-windows %s -o %t.obj
+// RUN: not lld-link -entry:_start -subsystem:console %t.obj -out:%t.exe -dynamicbase:no 2>&1 | FileCheck %s
+ .globl _start
+_start:
+ ret
+
+# CHECK: dynamicbase:no is not compatible with arm64