-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdebug-dwarf.test
32 lines (27 loc) · 1.11 KB
/
debug-dwarf.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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