summaryrefslogtreecommitdiff
path: root/test/ELF/file-access.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/file-access.s')
-rw-r--r--test/ELF/file-access.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/ELF/file-access.s b/test/ELF/file-access.s
new file mode 100644
index 000000000000..5a9e53b11140
--- /dev/null
+++ b/test/ELF/file-access.s
@@ -0,0 +1,13 @@
+# REQUIRES: x86, shell
+
+# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
+# RUN: ld.lld -r %t.o -o %t1.o
+# RUN: [ ! -x %t1.o ]
+# RUN: ld.lld -shared %t.o -o %t2.so
+# RUN: [ -x %t2.so ]
+# RUN: ld.lld %t.o -o %t3
+# RUN: [ -x %t3 ]
+
+.global _start
+_start:
+ nop