aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/dynamic-list-unexpected-end.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/dynamic-list-unexpected-end.s')
-rw-r--r--test/ELF/dynamic-list-unexpected-end.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ELF/dynamic-list-unexpected-end.s b/test/ELF/dynamic-list-unexpected-end.s
new file mode 100644
index 000000000000..f485a662dbf9
--- /dev/null
+++ b/test/ELF/dynamic-list-unexpected-end.s
@@ -0,0 +1,7 @@
+# REQUIRES: x86
+
+# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
+# RUN: echo "{ }; foo;" > %t.list
+# RUN: not ld.lld -dynamic-list %t.list -shared %t.o -o %t.so 2>&1 | FileCheck %s
+
+# CHECK: error: {{.*}}:1: EOF expected, but got foo