[ThinLTO] Add code comment. NFC
[llvm-complete.git] / test / MC / ELF / comdat-name-number.s
blob48220d484c924699a151cc9f980e870a5bc37d2c
1 // RUN: llvm-mc -triple x86_64-pc-linux-gnu %s -filetype=obj -o %t.o
2 // RUN: llvm-readobj --elf-section-groups %t.o | FileCheck %s
4 // Test that we can handle numeric COMDAT names.
6 .section .foo,"G",@progbits,123,comdat
7 .section .bar,"G",@progbits,abc,comdat
9 // CHECK: Groups {
10 // CHECK-NEXT: Group {
11 // CHECK-NEXT: Name: .group
12 // CHECK-NEXT: Index:
13 // CHECK-NEXT: Link:
14 // CHECK-NEXT: Info:
15 // CHECK-NEXT: Type: COMDAT
16 // CHECK-NEXT: Signature: 123
17 // CHECK-NEXT: Section(s) in group [
18 // CHECK-NEXT: .foo
19 // CHECK-NEXT: ]
20 // CHECK-NEXT: }
21 // CHECK-NEXT: Group {
22 // CHECK-NEXT: Name: .group
23 // CHECK-NEXT: Index:
24 // CHECK-NEXT: Link:
25 // CHECK-NEXT: Info:
26 // CHECK-NEXT: Type: COMDAT
27 // CHECK-NEXT: Signature: abc
28 // CHECK-NEXT: Section(s) in group [
29 // CHECK-NEXT: .bar
30 // CHECK-NEXT: ]
31 // CHECK-NEXT: }
32 // CHECK-NEXT: }