[Dexter][NFC] Add Missing Commands to Commands.md Contents
[llvm-project.git] / lld / test / COFF / linkrepro-pdb.test
blob34152a459077e1082df7adaa7eac5eb8aec6a801
1 REQUIRES: x86, gnutar
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: lld-link a.obj b.obj -entry:main -debug -out:%t.exe -pdb:%t.pdb -nodefaultlib -linkrepro:.
8 RUN: tar xOf repro.tar repro/%:t/ts.pdb > repro-ts.pdb
9 RUN: diff ts.pdb repro-ts.pdb
11 RUN: tar xf repro.tar
12 RUN: cat repro/response.txt | FileCheck -check-prefix=PDB %s
14 PDB: -out:linkrepro-pdb.test.tmp.exe
15 PDB-NEXT: -pdb:linkrepro-pdb.test.tmp.pdb
17 RUN: yaml2obj %p/Inputs/export.yaml -o %t1.obj
18 RUN: lld-link /out:%t1.dll /dll %t1.obj /implib:%t1.lib /export:exportfn1 /export:exportfn2 /linkrepro:.
19 RUN: tar xf repro.tar
20 RUN: cat repro/response.txt | FileCheck -check-prefix=IMP %s
22 IMP: /implib:linkrepro-pdb.test.tmp1.lib