Silence -Wunused-variable in release builds.
[llvm/stm8.git] / test / MC / ELF / type.s
blob4b98c02e97d5e23350efc1de796543cdeeec045d
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
3 // Test that both % and @ are accepted.
4 .global foo
5 .type foo,%function
6 foo:
8 .global bar
9 .type bar,@object
10 bar:
12 // Test that gnu_unique_object is accepted.
13 .type zed,@gnu_unique_object
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', 0x0000000000000000)
22 // CHECK-NEXT: ('st_size', 0x0000000000000000)
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', 0x0000000000000000)
31 // CHECK-NEXT: ('st_size', 0x0000000000000000)
32 // CHECK-NEXT: ),