2015-05-31 11:55:46 +08:00
|
|
|
# RUN: lld -flavor link2 /entry:main /subsystem:console /out:%t.exe \
|
|
|
|
# RUN: %p/Inputs/ret42.obj
|
2015-05-30 00:23:40 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=DEFAULT %s
|
|
|
|
|
|
|
|
DEFAULT: SizeOfHeapReserve: 1048576
|
|
|
|
DEFAULT: SizeOfHeapCommit: 4096
|
|
|
|
|
2015-05-31 11:55:46 +08:00
|
|
|
# RUN: lld -flavor link2 /entry:main /subsystem:console /out:%t.exe \
|
|
|
|
# RUN: /heap:0x3000 %p/Inputs/ret42.obj
|
2015-05-30 00:23:40 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK1 %s
|
|
|
|
|
|
|
|
CHECK1: SizeOfHeapReserve: 12288
|
|
|
|
CHECK1: SizeOfHeapCommit: 4096
|
|
|
|
|
2015-05-31 11:55:46 +08:00
|
|
|
# RUN: lld -flavor link2 /entry:main /subsystem:console /out:%t.exe \
|
|
|
|
# RUN: /heap:0x5000,0x3000 %p/Inputs/ret42.obj
|
2015-05-30 00:23:40 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK2 %s
|
|
|
|
|
|
|
|
CHECK2: SizeOfHeapReserve: 20480
|
|
|
|
CHECK2: SizeOfHeapCommit: 12288
|