1# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj 2 3# RUN: lld-link /out:%t.exe /entry:main %t.obj 4# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=DEFAULT %s 5 6DEFAULT: SizeOfStackReserve: 1048576 7DEFAULT: SizeOfStackCommit: 4096 8 9# RUN: lld-link /out:%t.exe /entry:main %t.obj /stack:0x3000 10# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=CHECK1 %s 11# RUN: echo "STACKSIZE 12288" > %t.def 12# RUN: lld-link /out:%t.exe /entry:main /def:%t.def %t.obj 13# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=CHECK1 %s 14 15CHECK1: SizeOfStackReserve: 12288 16CHECK1: SizeOfStackCommit: 4096 17 18# RUN: lld-link /out:%t.exe /entry:main %t.obj /stack:0x5000,0x3000 19# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=CHECK2 %s 20# RUN: echo "STACKSIZE 20480,12288" > %t.def 21# RUN: lld-link /out:%t.exe /entry:main /def:%t.def %t.obj 22# RUN: llvm-readobj --file-headers %t.exe | FileCheck -check-prefix=CHECK2 %s 23 24CHECK2: SizeOfStackReserve: 20480 25CHECK2: SizeOfStackCommit: 12288 26