linux-packaging-mono/external/llvm/test/MC/ELF/comdat-declaration-errors.s
Xamarin Public Jenkins (auto-signing) 64ac736ec5 Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
2019-04-12 14:10:50 +00:00

15 lines
473 B
ArmAsm

// RUN: not llvm-mc -triple x86_64-pc-linux-gnu %s \
// RUN: -filetype=obj -o %t.o 2>&1 | FileCheck %s
// Check we error out on incorrect COMDATs declarations
// and not just silently ingnore them.
// CHECK: error: invalid group name
// CHECK-NEXT: .section .foo,"G",@progbits,-abc,comdat
// CHECK: error: invalid linkage
// CHECK-NEXT: .section .bar,"G",@progbits,abc,-comdat
.section .foo,"G",@progbits,-abc,comdat
.section .bar,"G",@progbits,abc,-comdat