Use printf instead of "echo -ne".

Not all echo commands support "-e".

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285162 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rui Ueyama 2016-10-26 03:38:48 +00:00
parent 5de769581c
commit a703dbcdce
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
// some joined arguments (like "-x c") across lines to ensure that regular
// clang (not clang-cl) can process it correctly.
//
// RUN: echo -en "-x\r\nc\r\n-DTEST\r\n" > %t.0.txt
// RUN: printf " -x\r\nc\r\n-DTEST\r\n" > %t.0.txt
// RUN: %clang -E @%t.0.txt %s -v 2>&1 | FileCheck %s -check-prefix=SHORT
// SHORT: extern int it_works;