1# REQUIRES: shell 2# RUN: rm -rf %t.dir 3# RUN: mkdir -p %t.dir 4# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.dir/foo.o %s 5# RUN: wasm-ld --reproduce=%t.dir/repro.tar -o %t.dir/out.wasm %t.dir/foo.o 6# RUN: env LLD_REPRODUCE=%t.dir/repro2.tar wasm-ld -o %t.dir/out.wasm %t.dir/foo.o 7 8# RUN: cd %t.dir 9# RUN: tar tf repro.tar | FileCheck --check-prefix=TAR %s 10# RUN: tar tf repro2.tar | FileCheck --check-prefix=TAR2 %s 11 12# TAR: repro/response.txt 13# TAR: repro/version.txt 14# TAR: repro/{{.*}}/foo.o 15 16# TAR2: repro2/response.txt 17# TAR2: repro2/version.txt 18# TAR2: repro2/{{.*}}/foo.o 19 20# RUN: tar xf repro.tar 21# RUN: FileCheck --check-prefix=RSP %s < repro/response.txt 22 23# RSP: -o {{.*}}out.wasm 24# RSP: {{.*}}/foo.o 25 26# RUN: FileCheck %s --check-prefix=VERSION < repro/version.txt 27# VERSION: LLD 28 29.globl _start 30_start: 31 .functype _start () -> () 32 end_function 33