2015-05-31 12:21:30 +08:00
|
|
|
# RUN: yaml2obj < %p/Inputs/ret42.yaml > %t.obj
|
|
|
|
|
2015-08-07 00:19:35 +08:00
|
|
|
# RUN: lld -flavor link /out:%t.exe /entry:main %t.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-08-07 00:19:35 +08:00
|
|
|
# RUN: lld -flavor link /out:%t.exe /entry:main /heap:0x3000 %t.obj
|
2015-05-30 00:23:40 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK1 %s
|
2015-06-18 03:19:25 +08:00
|
|
|
# RUN: echo "HEAPSIZE 12288" > %t.def
|
2015-08-07 00:19:35 +08:00
|
|
|
# RUN: lld -flavor link /out:%t.exe /entry:main /def:%t.def %t.obj
|
2015-06-18 03:19:25 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK1 %s
|
2015-05-30 00:23:40 +08:00
|
|
|
|
|
|
|
CHECK1: SizeOfHeapReserve: 12288
|
|
|
|
CHECK1: SizeOfHeapCommit: 4096
|
|
|
|
|
2015-08-07 00:19:35 +08:00
|
|
|
# RUN: lld -flavor link /out:%t.exe /entry:main /heap:0x5000,0x3000 %t.obj
|
2015-05-30 00:23:40 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK2 %s
|
2015-06-18 03:19:25 +08:00
|
|
|
# RUN: echo "HEAPSIZE 20480,12288" > %t.def
|
2015-08-07 00:19:35 +08:00
|
|
|
# RUN: lld -flavor link /out:%t.exe /entry:main /def:%t.def %t.obj
|
2015-06-18 03:19:25 +08:00
|
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK2 %s
|
2015-05-30 00:23:40 +08:00
|
|
|
|
|
|
|
CHECK2: SizeOfHeapReserve: 20480
|
|
|
|
CHECK2: SizeOfHeapCommit: 12288
|