llvm-6502/test/MC/COFF/section-invalid-flags.s
Reid Kleckner b81e6cf6c5 MC: Diagnose an unexpected token in COFF .section instead of asserting
This can easily arise when trying to assemble and ELF style .section
directive for a COFF object file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215373 91177308-0d34-0410-b5e6-96231b3b80d8
2014-08-11 18:34:43 +00:00

12 lines
450 B
ArmAsm

// RUN: not llvm-mc -triple i386-pc-win32 -filetype=obj %s 2>&1 | FileCheck %s
// RUN: not llvm-mc -triple x86_64-pc-win32 -filetype=obj %s 2>&1 | FileCheck %s
// CHECK: error: conflicting section flags 'b' and 'd'
.section s_db,"db"; .long 1
// CHECK: error: conflicting section flags 'b' and 'd'
.section s_bd,"bd"; .long 1
// CHECK: error: expected comdat type such as 'discard' or 'largest' after protection bits
.section .stack, "w", @nobits