You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1015 B
26 lines
1015 B
# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
|
|
|
|
# RUN: lld-link /out:%t.exe /entry:main %t.obj
|
|
# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=DEFAULT %s
|
|
|
|
DEFAULT: SizeOfHeapReserve: 1048576
|
|
DEFAULT: SizeOfHeapCommit: 4096
|
|
|
|
# RUN: lld-link /out:%t.exe /entry:main /heap:0x3000 %t.obj
|
|
# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=CHECK1 %s
|
|
# RUN: echo "HEAPSIZE 12288" > %t.def
|
|
# RUN: lld-link /out:%t.exe /entry:main /def:%t.def %t.obj
|
|
# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=CHECK1 %s
|
|
|
|
CHECK1: SizeOfHeapReserve: 12288
|
|
CHECK1: SizeOfHeapCommit: 4096
|
|
|
|
# RUN: lld-link /out:%t.exe /entry:main /heap:0x5000,0x3000 %t.obj
|
|
# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=CHECK2 %s
|
|
# RUN: echo "HEAPSIZE 20480,12288" > %t.def
|
|
# RUN: lld-link /out:%t.exe /entry:main /def:%t.def %t.obj
|
|
# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=CHECK2 %s
|
|
|
|
CHECK2: SizeOfHeapReserve: 20480
|
|
CHECK2: SizeOfHeapCommit: 12288
|