MC: Overhaul handling of .lcomm
[oota-llvm.git] / test / MC / ELF / lcomm.s
1 // RUN: llvm-mc -triple i386-pc-linux-gnu %s -filetype=obj -o - | elf-dump | FileCheck %s
2
3 .lcomm A, 5
4 .lcomm B, 32 << 20
5
6 // CHECK: (('st_name', 0x00000001) # 'A'
7 // CHECK:  ('st_value', 0x00000000)
8 // CHECK:  ('st_size', 0x00000005)
9 // CHECK:  ('st_bind', 0x0)
10 // CHECK:  ('st_type', 0x1)
11 // CHECK:  ('st_other', 0x00)
12 // CHECK:  ('st_shndx', 0x0003)
13 // CHECK: ),
14 // CHECK: (('st_name', 0x00000003) # 'B'
15 // CHECK:  ('st_value', 0x00000005)
16 // CHECK:  ('st_size', 0x02000000)
17 // CHECK:  ('st_bind', 0x0)
18 // CHECK:  ('st_type', 0x1)
19 // CHECK:  ('st_other', 0x00)
20 // CHECK:  ('st_shndx', 0x0003)
21 // CHECK: ),