llvm-project
23 строки · 1.0 Кб
1# RUN: yaml2obj %p/Inputs/empty.yaml -o %t.obj
2
3# RUN: not lld-link /entry:main %t.obj /out:%t.exe /debug /pdbpagesize:hi 2>&1 \
4# RUN: | FileCheck --check-prefix=INVALID %s
5# RUN: not lld-link /entry:main %t.obj /out:%t.exe /debug /pdbpagesize:15 2>&1 \
6# RUN: | FileCheck --check-prefix=INVALID %s
7# INVALID: error: /pdbpagesize: invalid argument:
8
9# RUN: lld-link /entry:main %t.obj /out:%t.exe /debug /pdbpagesize:4096
10# RUN: llvm-pdbutil pdb2yaml %t.pdb | FileCheck --check-prefix=PAGE4096 %s
11# PAGE4096: BlockSize: 4096
12
13# RUN: lld-link /entry:main %t.obj /out:%t.exe /debug /pdbpagesize:8192
14# RUN: llvm-pdbutil pdb2yaml %t.pdb | FileCheck --check-prefix=PAGE8192 %s
15# PAGE8192: BlockSize: 8192
16
17# RUN: lld-link /entry:main %t.obj /out:%t.exe /debug /pdbpagesize:16384
18# RUN: llvm-pdbutil pdb2yaml %t.pdb | FileCheck --check-prefix=PAGE16384 %s
19# PAGE16384: BlockSize: 16384
20
21# RUN: lld-link /entry:main %t.obj /out:%t.exe /debug /pdbpagesize:32768
22# RUN: llvm-pdbutil pdb2yaml %t.pdb | FileCheck --check-prefix=PAGE32768 %s
23# PAGE32768: BlockSize: 32768
24