Test for ELF .size directive.
authorEli Friedman <eli.friedman@gmail.com>
Sat, 17 Jul 2010 03:15:24 +0000 (03:15 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 17 Jul 2010 03:15:24 +0000 (03:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108607 91177308-0d34-0410-b5e6-96231b3b80d8

test/MC/AsmParser/directive_elf_size.s [new file with mode: 0644]

diff --git a/test/MC/AsmParser/directive_elf_size.s b/test/MC/AsmParser/directive_elf_size.s
new file mode 100644 (file)
index 0000000..af35ae0
--- /dev/null
@@ -0,0 +1,8 @@
+# RUN: llvm-mc -triple i386-pc-linux-gnu %s | FileCheck %s
+
+a:
+       ret
+.Lt:
+# CHECK: .size a, .Lt-a
+       .size   a, .Lt-a
+