1; Test that we can recurse, at least a little bit.  The -time-passes flag here
2; is a hack to make sure that neither echo nor the shell expands the response
3; file for us.  Tokenization with quotes is tested in unittests.
4; On Windows, paths contain \ characters, which are escape characters in
5; GNU-style response files.  So replace \ with \\ to make the tests work there.
6; RUN: echo %s | sed -e 's:\\:\\\\:g' > %t.list1
7; RUN: echo "-time-passes @%t.list1" | sed -e 's:\\:\\\\:g' > %t.list2
8; RUN: llvm-as @%t.list2 -o %t.bc
9; RUN: llvm-nm %t.bc 2>&1 | FileCheck %s
10
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/null
14; RUN: llvm-as @%S/Inputs/utf8-bom-response > /dev/null
15
16; CHECK: T foobar
17
18define void @foobar() {
19  ret void
20}
21