2016-07-11 20:42:14 +08:00
|
|
|
#RUN: llvm-mc -preserve-comments -n -triple i386-linux-gnu < %s > %t
|
2020-01-17 00:28:37 +08:00
|
|
|
#RUN: diff -b %s %t
|
2020-12-10 07:13:15 +08:00
|
|
|
#RUN: llvm-mc -preserve-comments -n -triple i386-linux-gnu < %p/Inputs/no-newline-at-end-of-file.s | FileCheck %s
|
2016-07-11 20:42:14 +08:00
|
|
|
.text
|
|
|
|
|
2016-07-13 22:03:12 +08:00
|
|
|
foo: #Comment here
|
|
|
|
#comment here
|
2016-07-11 20:42:14 +08:00
|
|
|
nop
|
|
|
|
#if DIRECTIVE COMMENT
|
|
|
|
## WHOLE LINE COMMENT
|
|
|
|
cmpl $196, %eax ## EOL COMMENT
|
|
|
|
#endif
|
2016-07-18 23:24:03 +08:00
|
|
|
.ident "clang version 3.9.0"
|
|
|
|
.section ".note.GNU-stack","",@progbits
|
2020-12-10 07:13:15 +08:00
|
|
|
|
|
|
|
#Confirm we don't crash on inputs without a terminating newline.
|
|
|
|
#CHECK: .text
|