2013-10-22 23:41:52 +00: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-04-30 14:21:49 +00:00
|
|
|
// CHECK: Index: 5
|
2013-10-22 23:41:52 +00:00
|
|
|
// CHECK-NEXT: Name: .group
|
|
|
|
|
2015-04-30 14:21:49 +00:00
|
|
|
// CHECK: Index: 6
|
|
|
|
// CHECK-NEXT: Name: .foo
|
2013-10-22 23:41:52 +00:00
|
|
|
|
2015-04-29 20:25:24 +00:00
|
|
|
// CHECK: Index: 7
|
2015-04-30 14:21:49 +00:00
|
|
|
// CHECK-NEXT: Name: .group
|
2013-10-22 23:41:52 +00:00
|
|
|
|
2015-04-29 20:25:24 +00:00
|
|
|
// CHECK: Index: 8
|
2013-10-22 23:41:52 +00:00
|
|
|
// CHECK-NEXT: Name: .foo
|
|
|
|
|
|
|
|
// CHECK: Symbols [
|
|
|
|
|
|
|
|
// CHECK: Name: f1
|
|
|
|
// CHECK-NOT: }
|
2015-04-30 14:21:49 +00:00
|
|
|
// CHECK: Section: .group (0x5)
|
2013-10-22 23:41:52 +00:00
|
|
|
|
|
|
|
// CHECK: Name: f2
|
|
|
|
// CHECK-NOT: }
|
2015-04-30 14:21:49 +00:00
|
|
|
// CHECK: Section: .group (0x7)
|
2013-10-22 23:41:52 +00:00
|
|
|
|
|
|
|
.section .foo,"axG",@progbits,f1,comdat
|
|
|
|
nop
|
|
|
|
|
|
|
|
.section .foo,"axG",@progbits,f2,comdat
|
|
|
|
nop
|
|
|
|
|