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
Flags |= COFF::IMAGE_SCN_LNK_COMDAT;
+ if (!getLexer().is(AsmToken::Identifier))
+ return TokError("expected comdat type such as 'discard' or 'largest' "
+ "after protection bits");
+
if (parseCOMDATType(Type))
return true;
// 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