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