1 # Source file compiled:
5 #void foo(A variable) {
6 # std::cout << "foo is " << typeid(A).name() << "\n";
16 RUN: llvm-readobj -g %p/Inputs/elf-groups.x86_64 \
18 RUN: llvm-readobj -g -elf-output-style=GNU %p/Inputs/elf-groups.x86_64 \
19 RUN: | FileCheck --check-prefix="GNU" %s
22 CHECK-NEXT: Name: .group (92)
26 CHECK-NEXT: Type: COMDAT (0x1)
27 CHECK-NEXT: Signature: _Z3fooIcEvT_
28 CHECK-NEXT: Section(s) in group [
29 CHECK-NEXT: .text._Z3fooIcEvT_ (10)
30 CHECK-NEXT: .rela.text._Z3fooIcEvT_ (11)
34 CHECK-NEXT: Name: .group (92)
38 CHECK-NEXT: Type: COMDAT (0x1)
39 CHECK-NEXT: Signature: _Z3fooIiEvT_
40 CHECK-NEXT: Section(s) in group [
41 CHECK-NEXT: .text._Z3fooIiEvT_ (12)
42 CHECK-NEXT: .rela.text._Z3fooIiEvT_ (13)
46 GNU:COMDAT group section [ 1] `.group' [_Z3fooIcEvT_] contains 2 sections:
47 GNU-NEXT: [Index] Name
48 GNU-NEXT: [ 10] .text._Z3fooIcEvT_
49 GNU-NEXT: [ 11] .rela.text._Z3fooIcEvT_
50 GNU:COMDAT group section [ 2] `.group' [_Z3fooIiEvT_] contains 2 sections:
51 GNU-NEXT: [Index] Name
52 GNU-NEXT: [ 12] .text._Z3fooIiEvT_
53 GNU-NEXT: [ 13] .rela.text._Z3fooIiEvT_
54 GNU:COMDAT group section [ 3] `.group' [_ZNKSt9type_info4nameEv] contains 1 sections:
55 GNU-NEXT: [Index] Name
56 GNU-NEXT: [ 14] .text._ZNKSt9type_info4nameEv