1RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ret32.s -o %t.o
2
3RUN: echo "%/t.o -o %/t.wasm -e ret32" > %t.rsp
4RUN: wasm-ld @%t.rsp --initial-memory=655360
5RUN: llvm-readobj --sections %t.wasm | FileCheck %s
6CHECK: MinPages: 10
7
8RUN: not wasm-ld --rsp-quoting=foobar @%t.rsp 2>&1 | \
9RUN:     FileCheck --check-prefix=INVRSP %s
10INVRSP: invalid response file quoting: foobar
11
12RUN: echo "blah\foo" > %t.rsp
13RUN: not wasm-ld -o a.out --rsp-quoting=windows @%t.rsp 2>&1 | \
14RUN:     FileCheck --check-prefix=WINRSP %s
15WINRSP: error: cannot open blah\foo:
16
17RUN: echo "blah\foo" > %t.rsp
18RUN: not wasm-ld -o a.out --rsp-quoting=posix @%t.rsp 2>&1 | \
19RUN:     FileCheck --check-prefix=POSRSP %s
20POSRSP: error: cannot open blahfoo:
21