brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 838f074 Raw
35 lines · plain
1REQUIRES: x86, gnutar2 3RUN: rm -rf %t && mkdir -p %t && cd %t4RUN: yaml2obj %S/Inputs/pdb-type-server-simple-a.yaml -o a.obj5RUN: yaml2obj %S/Inputs/pdb-type-server-simple-b.yaml -o b.obj6RUN: llvm-pdbutil yaml2pdb %S/Inputs/pdb-type-server-simple-ts.yaml -pdb ts.pdb7RUN: cp %p/Inputs/natvis-1.natvis %t.natvis8RUN: cp %p/Inputs/stream.txt %t.txt9RUN: lld-link a.obj b.obj -entry:main -debug -out:%t.exe -pdb:%t.pdb \10RUN:     -nodefaultlib -linkrepro:. -natvis:%t.natvis \11RUN:     -pdbstream:srcsrv=%t.txt12RUN: tar tf repro.tar | FileCheck --check-prefix=LIST %s13RUN: tar xf repro.tar14RUN: diff ts.pdb repro/%:t/ts.pdb15RUN: diff %t.natvis repro/%:t.natvis16RUN: diff %t.txt repro/%:t.txt17RUN: cat repro/response.txt | FileCheck -check-prefix=RSP %s18 19LIST: .obj20LIST: response.txt21LIST: .natvis22 23RSP: -out:linkrepro-pdb.test.tmp.exe24RSP-NEXT: -pdb:linkrepro-pdb.test.tmp.pdb25RSP-NEXT: -nodefaultlib26RSP-NOT: -natvis:/27RSP-NOT: -pdbstream:srcsrv=/28 29RUN: yaml2obj %p/Inputs/export.yaml -o %t1.obj30RUN: lld-link /out:%t1.dll /dll %t1.obj /implib:%t1.lib /export:exportfn1 /export:exportfn2 /reproduce:repro2.tar31RUN: tar xf repro2.tar32RUN: cat repro2/response.txt | FileCheck -check-prefix=IMP %s33 34IMP: /implib:linkrepro-pdb.test.tmp1.lib35