diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-12 15:47:08 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-12 15:47:08 +0000 |
commit | d4a352609f0ebe8bdea2f70d4e0efae9b5db778e (patch) | |
tree | 65939c8ea9dda9be6124eb003cb9092db2f06ca9 /test/MC/ELF/type.s | |
parent | c9d8a75e44a56828cb4adcb9f54ff5c825571ce4 (diff) | |
download | llvm-d4a352609f0ebe8bdea2f70d4e0efae9b5db778e.tar.gz llvm-d4a352609f0ebe8bdea2f70d4e0efae9b5db778e.tar.bz2 llvm-d4a352609f0ebe8bdea2f70d4e0efae9b5db778e.tar.xz |
gnu as support both % and @ before types, do the same.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118893 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ELF/type.s')
-rw-r--r-- | test/MC/ELF/type.s | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/MC/ELF/type.s b/test/MC/ELF/type.s new file mode 100644 index 0000000000..8738433de6 --- /dev/null +++ b/test/MC/ELF/type.s @@ -0,0 +1,29 @@ +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s + +// Test that both % and @ are accepted. + .global foo + .type foo,%function +foo: + + .global bar + .type bar,@object +bar: + +// CHECK: # Symbol 0x00000004 +// CHECK-NEXT: (('st_name', 0x00000005) # 'bar' +// CHECK-NEXT: ('st_bind', 0x00000001) +// CHECK-NEXT: ('st_type', 0x00000001) +// CHECK-NEXT: ('st_other', 0x00000000) +// CHECK-NEXT: ('st_shndx', 0x00000001) +// CHECK-NEXT: ('st_value', 0x00000000) +// CHECK-NEXT: ('st_size', 0x00000000) +// CHECK-NEXT: ), +// CHECK-NEXT: # Symbol 0x00000005 +// CHECK-NEXT: (('st_name', 0x00000001) # 'foo' +// CHECK-NEXT: ('st_bind', 0x00000001) +// CHECK-NEXT: ('st_type', 0x00000002) +// CHECK-NEXT: ('st_other', 0x00000000) +// CHECK-NEXT: ('st_shndx', 0x00000001) +// CHECK-NEXT: ('st_value', 0x00000000) +// CHECK-NEXT: ('st_size', 0x00000000) +// CHECK-NEXT: ), |