Compiler projects using llvm
	#RUN: llvm-mc -preserve-comments -n -triple i386-linux-gnu < %s > %t
	#RUN: diff -b %s %t
	#RUN: llvm-mc -preserve-comments -n -triple i386-linux-gnu < %p/Inputs/no-newline-at-end-of-file.s | FileCheck %s
	.text

foo:	#Comment here
	#comment here
	nop
	#if DIRECTIVE COMMENT
	## WHOLE LINE COMMENT
	cmpl	$196, %eax	## EOL COMMENT
	#endif
	.ident	"clang version 3.9.0"
	.section	".note.GNU-stack","",@progbits

	#Confirm we don't crash on inputs without a terminating newline.
	#CHECK: .text