15 lines · plain
1// RUN: not llvm-mc -triple x86_64-pc-linux-gnu %s \2// RUN: -filetype=obj -o %t.o 2>&1 | FileCheck %s3 4// Check we error out on incorrect COMDATs declarations5// and not just silently ingnore them.6 7// CHECK: error: invalid group name8// CHECK-NEXT: .section .foo,"G",@progbits,-abc,comdat9 10// CHECK: error: invalid linkage11// CHECK-NEXT: .section .bar,"G",@progbits,abc,-comdat12 13.section .foo,"G",@progbits,-abc,comdat14.section .bar,"G",@progbits,abc,-comdat15