Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / relocatable-comment.s
blobca511fc8ae8a20c56a03019945767aa10d0c6c2c
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o
3 # RUN: ld.lld -r %t1.o -o %t
4 # RUN: llvm-readobj -S --section-data %t | FileCheck %s
6 # CHECK: Name: .comment
7 # CHECK-NEXT: Type: SHT_PROGBITS
8 # CHECK-NEXT: Flags [
9 # CHECK-NEXT: SHF_MERGE
10 # CHECK-NEXT: SHF_STRINGS
11 # CHECK-NEXT: ]
12 # CHECK-NEXT: Address:
13 # CHECK-NEXT: Offset:
14 # CHECK-NEXT: Size: 7
15 # CHECK-NEXT: Link:
16 # CHECK-NEXT: Info:
17 # CHECK-NEXT: AddressAlignment: 1
18 # CHECK-NEXT: EntrySize: 1
19 # CHECK-NEXT: SectionData (
20 # CHECK-NEXT: 0000: 666F6F62 617200 |foobar.|
21 # CHECK-NEXT: )
24 # We used to crash creating a merge and non merge .comment sections.
26 .section .comment,"MS",@progbits,1
27 .asciz "foobar"