llvm-project
16 строк · 360.0 Байт
1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-win32 %s -o %t.obj
3# RUN: lld-link /out:%t.exe /entry:main %t.obj
4# RUN: llvm-readobj --file-headers %t.exe | FileCheck %s
5
6# CHECK: SizeOfStackReserve: 20480
7# CHECK: SizeOfStackCommit: 12288
8
9.text
10.globl main
11main:
12mov $42, %eax
13ret
14
15.section .drectve,"yn"
16.ascii " -stack:0x5000,0x3000"
17