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: 3 6// CHECK-NEXT: Name: .group 7 8// CHECK: Index: 4 9// CHECK-NEXT: Name: .foo 10 11// CHECK: Index: 5 12// CHECK-NEXT: Name: .group 13 14// CHECK: Index: 6 15// CHECK-NEXT: Name: .foo 16 17// CHECK: Symbols [ 18 19// CHECK: Name: f1 20// CHECK-NOT: } 21// CHECK: Section: .group (0x3) 22 23// CHECK: Name: f2 24// CHECK-NOT: } 25// CHECK: Section: .group (0x5) 26 27 .section .foo,"axG",@progbits,f1,comdat 28 nop 29 30 .section .foo,"axG",@progbits,f2,comdat 31 nop 32 33