1 # RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
3 # RUN: echo /out:%t.exe /entry:main %t.obj > %t.rsp
4 # RUN: lld-link @%t.rsp /heap:0x3000
5 # RUN: llvm-readobj --file-headers %t.exe | FileCheck %s
6 CHECK: SizeOfHeapReserve: 12288
8 # RUN: not lld-link --rsp-quoting=foobar @%t.rsp 2>&1 | \
9 # RUN: FileCheck --check-prefix=INVRSP %s
10 INVRSP: invalid response file quoting: foobar
12 # RUN: echo "blah\foo" > %t.rsp
13 # RUN: not lld-link @%t.rsp 2>&1 | \
14 # RUN: FileCheck --check-prefix=DEFRSP %s
15 DEFRSP: error: could not open 'blah\foo'
17 # RUN: echo "blah\foo" > %t.rsp
18 # RUN: not lld-link --rsp-quoting=windows @%t.rsp 2>&1 | \
19 # RUN: FileCheck --check-prefix=WINRSP %s
20 WINRSP: error: could not open 'blah\foo'
22 # RUN: echo "blah\foo" > %t.rsp
23 # RUN: not lld-link --rsp-quoting=posix @%t.rsp 2>&1 | \
24 # RUN: FileCheck --check-prefix=POSRSP %s
25 POSRSP: error: could not open 'blahfoo'