1 #RUN: llvm-mc -preserve-comments -n -triple i386-linux-gnu < %s > %t 2 #RUN: diff -b %s %t 3 #RUN: llvm-mc -preserve-comments -n -triple i386-linux-gnu < %p/Inputs/no-newline-at-end-of-file.s | FileCheck %s 4 .text 5 6foo: #Comment here 7 #comment here 8 nop 9 #if DIRECTIVE COMMENT 10 ## WHOLE LINE COMMENT 11 cmpl $196, %eax ## EOL COMMENT 12 #endif 13 .ident "clang version 3.9.0" 14 .section ".note.GNU-stack","",@progbits 15 16 #Confirm we don't crash on inputs without a terminating newline. 17 #CHECK: .text 18