3 RUN: rm -rf %t && mkdir -p %t && cd %t
4 RUN: yaml2obj %S/Inputs/pdb-type-server-simple-a.yaml -o a.obj
5 RUN: yaml2obj %S/Inputs/pdb-type-server-simple-b.yaml -o b.obj
6 RUN: llvm-pdbutil yaml2pdb %S/Inputs/pdb-type-server-simple-ts.yaml -pdb ts.pdb
7 RUN: cp %p/Inputs/natvis-1.natvis %t.natvis
8 RUN: cp %p/Inputs/stream.txt %t.txt
9 RUN: lld-link a.obj b.obj -entry:main -debug -out:%t.exe -pdb:%t.pdb \
10 RUN: -nodefaultlib -linkrepro:. -natvis:%t.natvis \
11 RUN: -pdbstream:srcsrv=%t.txt
12 RUN: tar tf repro.tar | FileCheck --check-prefix=LIST %s
14 RUN: diff ts.pdb repro/%:t/ts.pdb
15 RUN: diff %t.natvis repro/%:t.natvis
16 RUN: diff %t.txt repro/%:t.txt
17 RUN: cat repro/response.txt | FileCheck -check-prefix=RSP %s
23 RSP: -out:linkrepro-pdb.test.tmp.exe
24 RSP-NEXT: -pdb:linkrepro-pdb.test.tmp.pdb
25 RSP-NEXT: -nodefaultlib
27 RSP-NOT: -pdbstream:srcsrv=/
29 RUN: yaml2obj %p/Inputs/export.yaml -o %t1.obj
30 RUN: lld-link /out:%t1.dll /dll %t1.obj /implib:%t1.lib /export:exportfn1 /export:exportfn2 /reproduce:repro2.tar
31 RUN: tar xf repro2.tar
32 RUN: cat repro2/response.txt | FileCheck -check-prefix=IMP %s
34 IMP: /implib:linkrepro-pdb.test.tmp1.lib