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.
14 # CHECK-NEXT: Name: .group
15 # CHECK-NEXT: Index: 2
18 # CHECK-NEXT: Type: COMDAT
19 # CHECK-NEXT: Signature: bar
20 # CHECK-NEXT: Section(s) in group [
21 # CHECK-NEXT: .foo (3)
25 # CHECK-NEXT: Name: .group
26 # CHECK-NEXT: Index: 4
29 # CHECK-NEXT: Type: COMDAT
30 # CHECK-NEXT: Signature: zed
31 # CHECK-NEXT: Section(s) in group [
32 # CHECK-NEXT: .foo (5)
37 .section .foo,"axG",@progbits,bar,comdat
38 .section .foo,"axG",@progbits,zed,comdat
39 .section .foo,"ax",@progbits