diff options
author | Yunzhong Gao <Yunzhong_Gao@playstation.sony.com> | 2015-01-24 04:23:08 +0000 |
---|---|---|
committer | Yunzhong Gao <Yunzhong_Gao@playstation.sony.com> | 2015-01-24 04:23:08 +0000 |
commit | d3198ce4bcc3ec64068d6508f2f08be97e6be83e (patch) | |
tree | 28abc83a6975ddfc2a958bd19ad375f24ef5a4e2 /test/Other/ResponseFile.ll | |
parent | 7a98df7f74f7ffc94f1684ad4b8dfb056fbcd787 (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226988 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Other/ResponseFile.ll')
-rw-r--r-- | test/Other/ResponseFile.ll | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Other/ResponseFile.ll b/test/Other/ResponseFile.ll index 914e5480f20..92648b86f5f 100644 --- a/test/Other/ResponseFile.ll +++ b/test/Other/ResponseFile.ll @@ -6,6 +6,11 @@ ; 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() { |