1*18e6a788SGeorge Rimar// RUN: not llvm-mc -triple x86_64-pc-linux-gnu %s \
2*18e6a788SGeorge Rimar// RUN:   -filetype=obj -o %t.o 2>&1 | FileCheck %s
3*18e6a788SGeorge Rimar
4*18e6a788SGeorge Rimar// Check we error out on incorrect COMDATs declarations
5*18e6a788SGeorge Rimar// and not just silently ingnore them.
6*18e6a788SGeorge Rimar
7*18e6a788SGeorge Rimar// CHECK:      error: invalid group name
8*18e6a788SGeorge Rimar// CHECK-NEXT: .section .foo,"G",@progbits,-abc,comdat
9*18e6a788SGeorge Rimar
10*18e6a788SGeorge Rimar// CHECK:      error: invalid linkage
11*18e6a788SGeorge Rimar// CHECK-NEXT: .section .bar,"G",@progbits,abc,-comdat
12*18e6a788SGeorge Rimar
13*18e6a788SGeorge Rimar.section .foo,"G",@progbits,-abc,comdat
14*18e6a788SGeorge Rimar.section .bar,"G",@progbits,abc,-comdat
15