Add a test for .seh_pushframe parsing. Fix the bug exposed by it (and another
[oota-llvm.git] / test / MC / AsmParser / directive_seh.s
1 # RUN: llvm-mc -triple x86_64-pc-win32 %s | FileCheck %s
2
3 # CHECK: .seh_proc func
4 # CHECK: .seh_pushframe @code
5 # CHECK: .seh_stackalloc 24
6 # CHECK: .seh_endprologue
7 # CHECK: .seh_handler __C_specific_handler, @except
8 # CHECK: .seh_endproc
9
10     .text
11     .globl func
12     .def func; .scl 2; .type 32; .endef
13     .seh_proc func
14 func:
15     .seh_pushframe @code
16     subq $24, %rsp
17     .seh_stackalloc 24
18     .seh_endprologue
19     .seh_handler __C_specific_handler, @except
20     addq $24, %rsp
21     ret
22     .seh_endproc