aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/undef.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/undef.s')
-rw-r--r--test/ELF/undef.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ELF/undef.s b/test/ELF/undef.s
new file mode 100644
index 000000000000..374c9c884d5f
--- /dev/null
+++ b/test/ELF/undef.s
@@ -0,0 +1,8 @@
+# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
+# RUN: not ld.lld %t -o %t2 2>&1 | FileCheck %s
+# CHECK: undefined symbol: foo in {{.*}}
+# REQUIRES: x86
+
+ .globl _start;
+_start:
+ call foo