From 8a3e1c4e0572760edee74ce63a89f85d9c250d9a Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Tue, 17 Oct 2017 00:27:31 +0000 Subject: [PATCH] Try to make crlf portable to other printf implementations git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315961 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/X86/Inputs/crlf.s | 2 ++ test/MC/X86/crlf.test | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 test/MC/X86/Inputs/crlf.s diff --git a/test/MC/X86/Inputs/crlf.s b/test/MC/X86/Inputs/crlf.s new file mode 100644 index 00000000000..00fd2eca81f --- /dev/null +++ b/test/MC/X86/Inputs/crlf.s @@ -0,0 +1,2 @@ +t1 # This file must be DOS formatted +t2 diff --git a/test/MC/X86/crlf.test b/test/MC/X86/crlf.test index 66014456138..32dec1b0b19 100644 --- a/test/MC/X86/crlf.test +++ b/test/MC/X86/crlf.test @@ -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 -- 2.50.1