Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / relocatable-comdat-multiple.s
blob7a4eddd837a9ba6aa88d0cdbd683266583b0bae3
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/relocatable-comdat-multiple.s -o %t2.o
4 # RUN: ld.lld -r %t.o %t2.o -o %t
5 # RUN: llvm-readobj --elf-section-groups %t | FileCheck %s
7 # CHECK: Groups {
8 # CHECK-NEXT: Group {
9 # CHECK-NEXT: Name: .group
10 # CHECK-NEXT: Index: 2
11 # CHECK-NEXT: Link: 9
12 # CHECK-NEXT: Info: 1
13 # CHECK-NEXT: Type: COMDAT
14 # CHECK-NEXT: Signature: aaa
15 # CHECK-NEXT: Section(s) in group [
16 # CHECK-NEXT: .text.a
17 # CHECK-NEXT: .text.b
18 # CHECK-NEXT: ]
19 # CHECK-NEXT: }
20 # CHECK-NEXT: Group {
21 # CHECK-NEXT: Name: .group
22 # CHECK-NEXT: Index: 5
23 # CHECK-NEXT: Link: 9
24 # CHECK-NEXT: Info: 6
25 # CHECK-NEXT: Type: COMDAT
26 # CHECK-NEXT: Signature: bbb
27 # CHECK-NEXT: Section(s) in group [
28 # CHECK-NEXT: .text.c
29 # CHECK-NEXT: .text.d
30 # CHECK-NEXT: ]
31 # CHECK-NEXT: }
32 # CHECK-NEXT: }
34 .section .text.a,"axG",@progbits,aaa,comdat
35 .section .text.b,"axG",@progbits,aaa,comdat