Files
clang-p2996/lld/test/COFF/debug-dwarf.test
Martin Storsjö e36535d4be [LLD] [COFF] Add /debug: options nodwarf and nosymtab (#75180)
These allow tweaking what gets implied by /debug and /debug:dwarf.
2023-12-15 20:10:41 +02:00

33 lines
1.1 KiB
Plaintext

# Check that /debug creates %t.pdb.
# RUN: rm -f %t.pdb
# RUN: lld-link /debug /entry:main /out:%t.exe %p/Inputs/ret42.obj
# RUN: ls %t.pdb
# Check that /debug:dwarf does not create %t.pdb.
# RUN: rm -f %t.pdb
# RUN: lld-link /debug:dwarf /entry:main /out:%t.exe %p/Inputs/ret42.obj
# RUN: not ls %t.pdb
# Check that /debug:dwarf /debug creates %t.pdb.
# RUN: rm -f %t.pdb
# RUN: lld-link /debug:dwarf /debug /entry:main /out:%t.exe %p/Inputs/ret42.obj
# RUN: ls %t.pdb
# Check that /debug:dwarf /pdb:%t.pdb does not create %t.pdb.
# RUN: rm -f %t.pdb
# RUN: lld-link /debug:dwarf /pdb:%t.pdb /entry:main /out:%t.exe %p/Inputs/ret42.obj
# RUN: not ls %t.pdb
# Check that /debug /debug:dwarf or /debug:full,dwarf creates %t.pdb.
# RUN: rm -f %t.pdb
# RUN: lld-link /debug /debug:dwarf /entry:main /out:%t.exe %p/Inputs/ret42.obj
# RUN: ls %t.pdb
# RUN: rm -f %t.pdb
# RUN: lld-link /debug:full,dwarf /entry:main /out:%t.exe %p/Inputs/ret42.obj
# RUN: ls %t.pdb
# Check that /debug /debug:full,nodwarf creates %t.pdb.
# RUN: rm -f %t.pdb
# RUN: lld-link /debug:full,nodwarf /entry:main /out:%t.exe %p/Inputs/ret42.obj
# RUN: ls %t.pdb