Fixed some bugs.
[llvm/zpu.git] / test / MC / ELF / common2.s
blobb54cdfe143fb141cc27d3d3efc8cdb0e5ad10bbc
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
3 // Test that the common symbols are placed at the end of .bss. In this example
4 // it causes .bss to have size 9 instead of 8.
6 .local vimvardict
7 .comm vimvardict,1,8
8 .bss
9 .zero 1
10 .align 8
12 // CHECK: (('sh_name', 0x0000000d) # '.bss'
13 // CHECK-NEXT: ('sh_type',
14 // CHECK-NEXT: ('sh_flags'
15 // CHECK-NEXT: ('sh_addr',
16 // CHECK-NEXT: ('sh_offset',
17 // CHECK-NEXT: ('sh_size', 0x00000009)
18 // CHECK-NEXT: ('sh_link',
19 // CHECK-NEXT: ('sh_info',
20 // CHECK-NEXT: ('sh_addralign',
21 // CHECK-NEXT: ('sh_entsize',