llvm-project/lld/test/COFF/stack.test

20 lines
704 B
Plaintext
Raw Normal View History

2015-05-30 00:21:11 +08:00
# RUN: lld -flavor link2 /entry:main /out:%t.exe %p/Inputs/ret42.obj
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=DEFAULT %s
DEFAULT: SizeOfStackReserve: 1048576
DEFAULT: SizeOfStackCommit: 4096
# RUN: lld -flavor link2 /entry:main /out:%t.exe /stack:0x3000 \
# RUN: %p/Inputs/ret42.obj
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK1 %s
CHECK1: SizeOfStackReserve: 12288
CHECK1: SizeOfStackCommit: 4096
# RUN: lld -flavor link2 /entry:main /out:%t.exe /stack:0x5000,0x3000 \
# RUN: %p/Inputs/ret42.obj
# RUN: llvm-readobj -file-headers %t.exe | FileCheck -check-prefix=CHECK2 %s
CHECK2: SizeOfStackReserve: 20480
CHECK2: SizeOfStackCommit: 12288