Use printf instead of "echo -ne".

Not all echo commands support "-e".

llvm-svn: 285162
This commit is contained in:
Rui Ueyama 2016-10-26 03:38:48 +00:00
parent 7b7bac367c
commit e38a8d2f14

@ -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;