[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / relocatable-comdat2.s
blob8e3161d49f8fc193a706af9d4e67d914679eaef3
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: ld.lld -r %t.o -o %t
4 # RUN: llvm-readobj --elf-section-groups -S %t | FileCheck %s
6 ## Check .foo was not merged.
7 # CHECK: Sections [
8 # CHECK: Name: .foo
9 # CHECK: Name: .foo
10 # CHECK: Name: .foo
12 # CHECK: Groups {
13 # CHECK-NEXT: Group {
14 # CHECK-NEXT: Name: .group
15 # CHECK-NEXT: Index: 2
16 # CHECK-NEXT: Link: 8
17 # CHECK-NEXT: Info: 1
18 # CHECK-NEXT: Type: COMDAT
19 # CHECK-NEXT: Signature: bar
20 # CHECK-NEXT: Section(s) in group [
21 # CHECK-NEXT: .foo (3)
22 # CHECK-NEXT: ]
23 # CHECK-NEXT: }
24 # CHECK-NEXT: Group {
25 # CHECK-NEXT: Name: .group
26 # CHECK-NEXT: Index: 4
27 # CHECK-NEXT: Link: 8
28 # CHECK-NEXT: Info: 2
29 # CHECK-NEXT: Type: COMDAT
30 # CHECK-NEXT: Signature: zed
31 # CHECK-NEXT: Section(s) in group [
32 # CHECK-NEXT: .foo (5)
33 # CHECK-NEXT: ]
34 # CHECK-NEXT: }
35 # CHECK-NEXT: }
37 .section .foo,"axG",@progbits,bar,comdat
38 .section .foo,"axG",@progbits,zed,comdat
39 .section .foo,"ax",@progbits