Parse and record the gnu_unique_object type.
[oota-llvm.git] / test / MC / ELF / type.s
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump  | FileCheck %s
2
3 // Test that both % and @ are accepted.
4         .global foo
5         .type foo,%function
6 foo:
7
8         .global bar
9         .type bar,@object
10 bar:
11
12 // Test that gnu_unique_object is accepted.
13         .type zed,@gnu_unique_object
14
15 // CHECK:      # Symbol 0x00000004
16 // CHECK-NEXT: (('st_name', 0x00000005) # 'bar'
17 // CHECK-NEXT:  ('st_bind', 0x00000001)
18 // CHECK-NEXT:  ('st_type', 0x00000001)
19 // CHECK-NEXT:  ('st_other', 0x00000000)
20 // CHECK-NEXT:  ('st_shndx', 0x00000001)
21 // CHECK-NEXT:  ('st_value', 0x00000000)
22 // CHECK-NEXT:  ('st_size', 0x00000000)
23 // CHECK-NEXT: ),
24 // CHECK-NEXT: # Symbol 0x00000005
25 // CHECK-NEXT: (('st_name', 0x00000001) # 'foo'
26 // CHECK-NEXT:  ('st_bind', 0x00000001)
27 // CHECK-NEXT:  ('st_type', 0x00000002)
28 // CHECK-NEXT:  ('st_other', 0x00000000)
29 // CHECK-NEXT:  ('st_shndx', 0x00000001)
30 // CHECK-NEXT:  ('st_value', 0x00000000)
31 // CHECK-NEXT:  ('st_size', 0x00000000)
32 // CHECK-NEXT: ),