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
3
4// Test that we can handle numeric COMDAT names.
5
6.section .foo,"G",@progbits,123,comdat
7.section .bar,"G",@progbits,abc,comdat
8
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: }
33