aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-09-28 16:19:11 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-09-28 16:19:11 +0000
commit53725bc57a992e812d08f6ec62d824dfd21425bf (patch)
treebf29e660c96490115f7beb5bb26deeab5f03e96a /test
parentc577c271b1e0230197bc48e991f376c52fb896a8 (diff)
downloadexternal_llvm-53725bc57a992e812d08f6ec62d824dfd21425bf.zip
external_llvm-53725bc57a992e812d08f6ec62d824dfd21425bf.tar.gz
external_llvm-53725bc57a992e812d08f6ec62d824dfd21425bf.tar.bz2
On elf, undefined symbols can start with .L.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114958 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/ELF/undef.s15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/MC/ELF/undef.s b/test/MC/ELF/undef.s
new file mode 100644
index 0000000..59bcc9f
--- /dev/null
+++ b/test/MC/ELF/undef.s
@@ -0,0 +1,15 @@
+// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
+
+// Test that there is an undefined reference to .Lset0, but not .Lset1
+
+ .long .Lset0
+foo:
+bar:
+.Lset1 = foo - bar
+ .long .Lset1
+
+// CHECK: ('_symbols', [
+// CHECK-NOT: Lset1
+// CHECK: (('st_name', 9) # '.Lset0'
+// CHECK-NOT: Lset1
+// CHECK: (('sh_name', 36) # '.strtab'