• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
2
3# RUN: lld-link /out:%t.exe /entry:main %t.obj
4# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=DEFAULT %s
5
6DEFAULT: SizeOfHeapReserve: 1048576
7DEFAULT: SizeOfHeapCommit: 4096
8
9# RUN: lld-link /out:%t.exe /entry:main /heap:0x3000 %t.obj
10# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=CHECK1 %s
11# RUN: echo "HEAPSIZE 12288" > %t.def
12# RUN: lld-link /out:%t.exe /entry:main /def:%t.def %t.obj
13# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=CHECK1 %s
14
15CHECK1: SizeOfHeapReserve: 12288
16CHECK1: SizeOfHeapCommit: 4096
17
18# RUN: lld-link /out:%t.exe /entry:main /heap:0x5000,0x3000 %t.obj
19# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=CHECK2 %s
20# RUN: echo "HEAPSIZE 20480,12288" > %t.def
21# RUN: lld-link /out:%t.exe /entry:main /def:%t.def %t.obj
22# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=CHECK2 %s
23
24CHECK2: SizeOfHeapReserve: 20480
25CHECK2: SizeOfHeapCommit: 12288
26