1 ## This checks that the group section is shrunk when its member is removed.
3 # RUN: yaml2obj --docnum=1 %s -o - \
4 # RUN: | llvm-objcopy -R .foo - - \
8 # CHECK: - Name: .group
10 # CHECK-NEXT: - SectionOrType: GRP_COMDAT
11 # CHECK-NEXT: - SectionOrType: .bar
12 # CHECK-NOT: - SectionOrType:
25 - SectionOrType: GRP_COMDAT
30 Flags: [ SHF_ALLOC, SHF_GROUP ]
33 Flags: [ SHF_ALLOC, SHF_GROUP ]
39 # RUN: yaml2obj --docnum=2 %s -o %t
40 # RUN: llvm-objcopy --remove-section=.debug_macro %t
41 # RUN: llvm-readelf --section-groups %t | FileCheck %s --check-prefix=GROUP-REMOVED
54 - SectionOrType: GRP_COMDAT
55 - SectionOrType: .debug_macro
63 # GROUP-REMOVED: There are no section groups in this file.
65 # RUN: yaml2obj --docnum=3 %s -o %t
66 # RUN: llvm-objcopy --remove-section=.group %t
67 # RUN: llvm-readelf --section-groups %t | FileCheck %s --check-prefix=EMPTY-GROUP-REMOVED
80 - SectionOrType: GRP_COMDAT
85 # EMPTY-GROUP-REMOVED: There are no section groups in this file.