1#PROG: strip
2#source: group.s
3#strip: --strip-unneeded
4#readelf: -Sg --wide
5#name: strip with section group 2
6
7#...
8  \[[ 0-9]+\] foo_group[ \t]+GROUP[ \t]+.*
9#...
10  \[[ 0-9]+\] \.text.*[ \t]+PROGBITS[ \t0-9a-f]+AXG[ \t]+.*
11#...
12  \[[ 0-9]+\] \.data.*[ \t]+PROGBITS[ \t0-9a-f]+WAG[ \t]+.*
13#...
14COMDAT group section \[[ 0-9]+\] `foo_group' \[foo_group\] contains 2 sections:
15   \[Index\]    Name
16   \[[ 0-9]+\]   .text.*
17   \[[ 0-9]+\]   .data.*
18#pass
19