2019-05-21 19:52:14 +08:00
|
|
|
; REQUIRES: shell
|
|
|
|
; RUN: rm -rf %t.dir
|
|
|
|
; RUN: mkdir -p %t.dir
|
|
|
|
; RUN: llc -filetype=obj %s -o %t.dir/foo.o
|
2019-05-22 03:41:19 +08:00
|
|
|
; RUN: wasm-ld --reproduce=%t.dir/repro.tar -o %t.dir/out.wasm %t.dir/foo.o
|
2019-05-21 19:52:14 +08:00
|
|
|
|
|
|
|
; RUN: cd %t.dir
|
2019-05-21 20:01:16 +08:00
|
|
|
; RUN: tar tf repro.tar | FileCheck --check-prefix=TAR %s
|
2019-05-21 19:52:14 +08:00
|
|
|
|
|
|
|
; TAR: repro/response.txt
|
|
|
|
; TAR: repro/version.txt
|
|
|
|
; TAR: repro/{{.*}}/foo.o
|
|
|
|
|
|
|
|
; RUN: tar xf repro.tar
|
|
|
|
; RUN: FileCheck --check-prefix=RSP %s < repro/response.txt
|
|
|
|
|
2019-05-22 03:41:19 +08:00
|
|
|
; RSP: -o {{.*}}out.wasm
|
2019-05-21 19:52:14 +08:00
|
|
|
; RSP: {{.*}}/foo.o
|
|
|
|
|
|
|
|
; RUN: FileCheck %s --check-prefix=VERSION < repro/version.txt
|
|
|
|
; VERSION: LLD
|
|
|
|
|
|
|
|
target triple = "wasm32-unknown-unknown"
|
|
|
|
|
|
|
|
define void @_start() {
|
|
|
|
ret void
|
|
|
|
}
|