24 lines · plain
1# REQUIRES: x862 3# RUN: rm -rf %t.dir; split-file %s %t.dir4 5# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-windows %t.dir/foo.s -o %t.dir/foo.obj6# RUN: cd %t.dir7# RUN: llvm-ar rcsT foo.lib foo.obj8 9# RUN: lld-link foo.lib /out:/dev/null /reproduce:repro.tar \10# RUN: /subsystem:console /machine:x6411# RUN: tar tf repro.tar | FileCheck -DPATH='repro/%:t.dir' %s12 13# RUN: lld-link /wholearchive foo.lib /out:/dev/null /reproduce:repro2.tar \14# RUN: /subsystem:console /machine:x6415# RUN: tar tf repro2.tar | FileCheck -DPATH='repro2/%:t.dir' %s16 17# CHECK-DAG: [[PATH]]/foo.lib18# CHECK-DAG: [[PATH]]/foo.obj19 20#--- foo.s21.globl mainCRTStartup22mainCRTStartup:23 nop24