[AsmParser] Fix preserve-comments-crlf.s on FreeBSD

--strip-trailing-cr is a diffutils option which is also available on
BSD-licensed diff introduced in FreeBSD 11.2, however, it has a bug
comparing files mixing \r and \r\n. Use -b (POSIX) instead.

llvm-svn: 338008
This commit is contained in:
Fangrui Song 2018-07-26 06:07:03 +00:00
parent 4e687d5bb2
commit c32561ea8b
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#REQUIRES: shell
#RUN: llvm-mc -preserve-comments -n -triple i386-linux-gnu < %s > %t
#RUN: diff --strip-trailing-cr %s %t
#RUN: diff -b %s %t
.text
foo: #Comment here