1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/Other/ResponseFile.ll
Reid Kleckner c1af8a0511 [Support] Beef up and expose the response file parsing in llvm::cl
The plan is to use it for clang and lld.

Major behavior changes:
- We can now parse UTF-16 files that have a byte order mark.
- PR16209: Don't drop backslashes on the floor if they don't escape
  anything.

The actual parsing loop was based on code from Clang's driver.cpp,
although it's been rewritten to track its state with control flow rather
than state variables.

Reviewers: hans

Differential Revision: http://llvm-reviews.chandlerc.com/D1170

llvm-svn: 186587
2013-07-18 16:52:05 +00:00

14 lines
428 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
; CHECK: T foobar
define void @foobar() {
ret void
}