1# RUN: yaml2obj < %p/Inputs/pdb1.yaml > %t1.obj 2# RUN: yaml2obj < %p/Inputs/pdb2.yaml > %t2.obj 3 4; If /DEBUG is not specified, /pdb is ignored. 5# RUN: rm -f %t.pdb 6# RUN: lld-link /pdb:%t.pdb /entry:main /nodefaultlib %t1.obj %t2.obj 7# RUN: not ls %t.pdb 8 9; If /DEBUG:NONE is specified after /DEBUG, /pdb is ignored. 10# RUN: rm -f %t.pdb 11# RUN: lld-link /DEBUG /pdb:%t.pdb /DEBUG:NONE /entry:main /nodefaultlib %t1.obj %t2.obj 12# RUN: not ls %t.pdb 13 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.obj 16# RUN: ls %t.pdb 17# RUN: rm %t.pdb 18 19; If /DEBUG is specified but not /pdb, it uses a default name in the current 20; directory. This is a bit hacky since but we need to be IN our test specific 21; temporary directory when we run this command or we can't test this 22# RUN: cd %T 23# RUN: lld-link /DEBUG /entry:main /nodefaultlib %t1.obj %t2.obj 24# RUN: ls %t1.pdb 25# RUN: rm %t* 26# RUN: cd %T/.. 27