forked from OSchip/llvm-project
21 lines
764 B
Plaintext
21 lines
764 B
Plaintext
# RUN: lld -flavor link2 /entry:main /subsystem:console /out:%t.exe \
|
|
# RUN: %p/Inputs/ret42.obj
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=DEFAULT %s
|
|
|
|
DEFAULT: SizeOfHeapReserve: 1048576
|
|
DEFAULT: SizeOfHeapCommit: 4096
|
|
|
|
# RUN: lld -flavor link2 /entry:main /subsystem:console /out:%t.exe \
|
|
# RUN: /heap:0x3000 %p/Inputs/ret42.obj
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK1 %s
|
|
|
|
CHECK1: SizeOfHeapReserve: 12288
|
|
CHECK1: SizeOfHeapCommit: 4096
|
|
|
|
# RUN: lld -flavor link2 /entry:main /subsystem:console /out:%t.exe \
|
|
# RUN: /heap:0x5000,0x3000 %p/Inputs/ret42.obj
|
|
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK2 %s
|
|
|
|
CHECK2: SizeOfHeapReserve: 20480
|
|
CHECK2: SizeOfHeapCommit: 12288
|