21 lines · plain
1; Test that we can recurse, at least a little bit. The -time-passes flag here2; is a hack to make sure that neither echo nor the shell expands the response3; file for us. Tokenization with quotes is tested in unittests.4; On Windows, paths contain \ characters, which are escape characters in5; GNU-style response files. So replace \ with \\ to make the tests work there.6; RUN: echo %s | sed -e 's:\\:\\\\:g' > %t.list17; RUN: echo "-time-passes @%t.list1" | sed -e 's:\\:\\\\:g' > %t.list28; RUN: llvm-as @%t.list2 -o %t.bc9; RUN: llvm-nm %t.bc 2>&1 | FileCheck %s10 11; When the response file begins with UTF8 BOM sequence, we shall remove them.12; Neither command below should return a "Could not open input file" error.13; RUN: llvm-as @%S/Inputs/utf8-response > /dev/null14; RUN: llvm-as @%S/Inputs/utf8-bom-response > /dev/null15 16; CHECK: T foobar17 18define void @foobar() {19 ret void20}21