Omit unused section symbols from the symbol table.
[oota-llvm.git] / test / MC / ELF / comdat-dup-group-name.s
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -t | FileCheck %s
2
3 // Test that we produce two foo sections, each in separate groups
4
5 // CHECK: Index: 5
6 // CHECK-NEXT: Name: .group
7
8 // CHECK: Index: 6
9 // CHECK-NEXT: Name: .foo
10
11 // CHECK: Index: 7
12 // CHECK-NEXT: Name: .group
13
14 // CHECK: Index: 8
15 // CHECK-NEXT: Name: .foo
16
17 // CHECK: Symbols [
18
19 // CHECK: Name: f1
20 // CHECK-NOT: }
21 // CHECK: Section: .group (0x5)
22
23 // CHECK: Name: f2
24 // CHECK-NOT: }
25 // CHECK: Section: .group (0x7)
26
27         .section        .foo,"axG",@progbits,f1,comdat
28         nop
29
30         .section        .foo,"axG",@progbits,f2,comdat
31         nop
32