2013-10-23 07:41:52 +08:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -t | FileCheck %s
|
|
|
|
|
|
|
|
// Test that we produce two foo sections, each in separate groups
|
|
|
|
|
2015-11-04 04:02:22 +08:00
|
|
|
// CHECK: Index: 3
|
2013-10-23 07:41:52 +08:00
|
|
|
// CHECK-NEXT: Name: .group
|
|
|
|
|
2015-11-04 04:02:22 +08:00
|
|
|
// CHECK: Index: 4
|
2015-04-30 22:21:49 +08:00
|
|
|
// CHECK-NEXT: Name: .foo
|
2013-10-23 07:41:52 +08:00
|
|
|
|
2015-11-04 04:02:22 +08:00
|
|
|
// CHECK: Index: 5
|
2015-04-30 22:21:49 +08:00
|
|
|
// CHECK-NEXT: Name: .group
|
2013-10-23 07:41:52 +08:00
|
|
|
|
2015-11-04 04:02:22 +08:00
|
|
|
// CHECK: Index: 6
|
2013-10-23 07:41:52 +08:00
|
|
|
// CHECK-NEXT: Name: .foo
|
|
|
|
|
|
|
|
// CHECK: Symbols [
|
|
|
|
|
|
|
|
// CHECK: Name: f1
|
|
|
|
// CHECK-NOT: }
|
2015-11-04 04:02:22 +08:00
|
|
|
// CHECK: Section: .group (0x3)
|
2013-10-23 07:41:52 +08:00
|
|
|
|
|
|
|
// CHECK: Name: f2
|
|
|
|
// CHECK-NOT: }
|
2015-11-04 04:02:22 +08:00
|
|
|
// CHECK: Section: .group (0x5)
|
2013-10-23 07:41:52 +08:00
|
|
|
|
|
|
|
.section .foo,"axG",@progbits,f1,comdat
|
|
|
|
nop
|
|
|
|
|
|
|
|
.section .foo,"axG",@progbits,f2,comdat
|
|
|
|
nop
|
|
|
|
|