2013-07-18 18:52:05 +02:00
|
|
|
; Test that we can recurse, at least a little bit. The -time-passes flag here
|
|
|
|
; is a hack to make sure that neither echo nor the shell expands the response
|
|
|
|
; file for us. Tokenization with quotes is tested in unittests.
|
2016-04-26 22:32:51 +02:00
|
|
|
; On Windows, paths contain \ characters, which are escape characters in
|
|
|
|
; GNU-style response files. So replace \ with \\ to make the tests work there.
|
|
|
|
; RUN: echo %s | sed -e 's:\\:\\\\:g' > %t.list1
|
|
|
|
; RUN: echo "-time-passes @%t.list1" | sed -e 's:\\:\\\\:g' > %t.list2
|
2013-07-18 18:52:05 +02:00
|
|
|
; RUN: llvm-as @%t.list2 -o %t.bc
|
2012-10-09 21:52:10 +02:00
|
|
|
; RUN: llvm-nm %t.bc 2>&1 | FileCheck %s
|
|
|
|
|
2015-01-24 05:23:08 +01:00
|
|
|
; When the response file begins with UTF8 BOM sequence, we shall remove them.
|
|
|
|
; Neither command below should return a "Could not open input file" error.
|
|
|
|
; RUN: llvm-as @%S/Inputs/utf8-response > /dev/null
|
|
|
|
; RUN: llvm-as @%S/Inputs/utf8-bom-response > /dev/null
|
|
|
|
|
2012-10-09 21:52:10 +02:00
|
|
|
; CHECK: T foobar
|
|
|
|
|
|
|
|
define void @foobar() {
|
|
|
|
ret void
|
|
|
|
}
|