summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/COFF/seh-stackalloc-zero.s
blob: 898ac844417dd976cf86c1838be00b9f1803ebde (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: not llvm-mc -triple x86_64-pc-win32 -filetype=obj %s -o %t.o 2>&1 | FileCheck %s

// CHECK: Allocation size must be non-zero!

    .globl smallFunc
    .def smallFunc; .scl 2; .type 32; .endef
    .seh_proc smallFunc
    .seh_stackalloc 0
smallFunc:
    ret
    .seh_endproc
OpenPOWER on IntegriCloud