xref: /aosp_15_r20/external/llvm/test/MC/COFF/seh-stackalloc-zero.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1// RUN: not llvm-mc -triple x86_64-pc-win32 -filetype=obj %s -o %t.o 2>&1 | FileCheck %s
2
3// CHECK: Allocation size must be non-zero!
4
5    .globl smallFunc
6    .def smallFunc; .scl 2; .type 32; .endef
7    .seh_proc smallFunc
8    .seh_stackalloc 0
9smallFunc:
10    ret
11    .seh_endproc
12