• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
2
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
6CHECK: SizeOfHeapReserve: 12288
7
8# RUN: not lld-link --rsp-quoting=foobar @%t.rsp 2>&1 | \
9# RUN:     FileCheck --check-prefix=INVRSP %s
10INVRSP: invalid response file quoting: foobar
11
12# RUN: echo "blah\foo" > %t.rsp
13# RUN: not lld-link @%t.rsp 2>&1 | \
14# RUN:     FileCheck --check-prefix=DEFRSP %s
15DEFRSP: error: could not open 'blah\foo'
16
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
20WINRSP: error: could not open 'blah\foo'
21
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
25POSRSP: error: could not open 'blahfoo'
26