xref: /llvm-project/llvm/test/MC/COFF/seh-stackalloc-zero.s (revision e52d1e678739b05b6dbf5c349877898e87ddecd7)
1// RUN: not llvm-mc -triple x86_64-pc-win32 -filetype=obj %s -o %t.o 2>&1 | FileCheck %s
2
3    .globl smallFunc
4    .def smallFunc; .scl 2; .type 32; .endef
5    .seh_proc smallFunc
6    .seh_stackalloc 0
7// CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: stack allocation size must be non-zero
8smallFunc:
9    ret
10    .seh_endproc
11