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: 1 6 // CHECK-NEXT: Name: .group 7 8 // CHECK: Index: 2 9 // CHECK-NEXT: Name: .group 10 11 // CHECK: Index: 6 12 // CHECK-NEXT: Name: .foo 13 14 // CHECK: Index: 7 15 // CHECK-NEXT: Name: .foo 16 17 // CHECK: Symbols [ 18 19 // CHECK: Name: f1 20 // CHECK-NOT: } 21 // CHECK: Section: .group (0x1) 22 23 // CHECK: Name: f2 24 // CHECK-NOT: } 25 // CHECK: Section: .group (0x2) 26 27 // CHECK: Name: .foo 28 // CHECK-NOT: } 29 // CHECK: Section: .foo (0x6) 30 31 // CHECK: Name: .foo 32 // CHECK-NOT: } 33 // CHECK: Section: .foo (0x7) 34 35 36 .section .foo,"axG",@progbits,f1,comdat 37 nop 38 39 .section .foo,"axG",@progbits,f2,comdat 40 nop 41 42