OSDN Git Service

Try to make crlf portable to other printf implementations
authorReid Kleckner <rnk@google.com>
Tue, 17 Oct 2017 00:27:31 +0000 (00:27 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 17 Oct 2017 00:27:31 +0000 (00:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315961 91177308-0d34-0410-b5e6-96231b3b80d8

test/MC/X86/Inputs/crlf.s [new file with mode: 0644]
test/MC/X86/crlf.test

diff --git a/test/MC/X86/Inputs/crlf.s b/test/MC/X86/Inputs/crlf.s
new file mode 100644 (file)
index 0000000..00fd2ec
--- /dev/null
@@ -0,0 +1,2 @@
+t1 # This file must be DOS formatted
+t2
index 6601445..32dec1b 100644 (file)
@@ -1,4 +1,4 @@
-RUN: printf '\r\n\r\n' | llvm-mc -as-lex | FileCheck %s
+RUN: llvm-mc %S/Inputs/crlf.s -as-lex | FileCheck %s
 There should only be two end of statements.
 CHECK: EndOfStatement
 CHECK: EndOfStatement