29 lines · plain
1# RUN: yaml2obj %p/Inputs/pdb1.yaml -o %t1.obj2# RUN: yaml2obj %p/Inputs/pdb2.yaml -o %t2.obj3 4; If /DEBUG is not specified, /pdb is ignored.5# RUN: rm -f %t.pdb6# RUN: lld-link /pdb:%t.pdb /entry:main /nodefaultlib %t1.obj %t2.obj7# RUN: not ls %t.pdb8 9; If /DEBUG:NONE is specified after /DEBUG, /pdb is ignored.10# RUN: rm -f %t.pdb11# RUN: lld-link /DEBUG /pdb:%t.pdb /DEBUG:NONE /entry:main /nodefaultlib %t1.obj %t2.obj12# RUN: not ls %t.pdb13 14; If /DEBUG and /pdb are specified, it uses the specified name.15# RUN: lld-link /DEBUG /pdb:%t.pdb /entry:main /nodefaultlib %t1.obj %t2.obj16# RUN: ls %t.pdb17# RUN: rm %t.pdb18 19; If /DEBUG is specified but not /pdb, it uses a default name in the current20; directory. This is a bit hacky since but we need to be IN our test specific21; temporary directory when we run this command or we can't test this22# RUN: mkdir -p %t.dir23# RUN: cp %t1.obj %t.dir/1.obj24# RUN: cp %t2.obj %t.dir/2.obj25# RUN: cd %t.dir26# RUN: lld-link /DEBUG /entry:main /nodefaultlib %t.dir/1.obj %t.dir/2.obj27# RUN: ls %t.dir/1.pdb28# RUN: rm -r %t*29