aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-09-30 04:22:07 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-09-30 04:22:07 +0000
commit1b6285cd72c480cd39048539d03b240e3c47d195 (patch)
treed989e626457672939aa740b09dd33fb5d5c8009b
parentf73fd7278f2bebd435c84c55a79db8ccb07d3534 (diff)
Add another test that now passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115137 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/MC/ELF/undef2.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/ELF/undef2.s b/test/MC/ELF/undef2.s
new file mode 100644
index 0000000000..764f1d7bd3
--- /dev/null
+++ b/test/MC/ELF/undef2.s
@@ -0,0 +1,10 @@
+// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
+
+// Test that this produces an undefined reference to .Lfoo
+
+ je .Lfoo
+
+// CHECK: ('_symbols', [
+// CHECK: (('st_name', 1) # '.Lfoo'
+// CHECK-NEXT: ('st_bind', 1)
+// CHECK: (('sh_name', 36) # '.strtab'