1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/Other/ResponseFile.ll
Yunzhong Gao 1ab9a1e7ef If we see UTF-8 BOM sequence at the beginning of a response file, we shall
remove these bytes before parsing.

Phabricator Revision: http://reviews.llvm.org/D7156

llvm-svn: 226988
2015-01-24 04:23:08 +00:00

19 lines
690 B
LLVM

; 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.
; RUN: echo %s > %t.list1
; RUN: echo "-time-passes @%t.list1" > %t.list2
; RUN: llvm-as @%t.list2 -o %t.bc
; RUN: llvm-nm %t.bc 2>&1 | FileCheck %s
; 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
; CHECK: T foobar
define void @foobar() {
ret void
}