1# RUN: not llvm-mc < %s -triple i686-windows-msvc -o /dev/null 2>&1 | FileCheck %s --implicit-check-not=error:
2
3.globl _foo
4_foo:
5	.cv_fpo_proc
6	# CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: expected symbol name
7	.cv_fpo_proc 1
8	# CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: expected symbol name
9	.cv_fpo_proc _foo extra
10	# CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: expected parameter byte count
11	.cv_fpo_proc _foo 4 extra
12	# CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: unexpected tokens in '.cv_fpo_proc' directive
13	.cv_fpo_proc _foo 4
14
15	pushl	%ebp
16	.cv_fpo_pushreg 1
17	# CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: invalid register name in '.cv_fpo_pushreg' directive
18	.cv_fpo_pushreg ebp
19
20	subl $20, %esp
21	.cv_fpo_stackalloc asdf
22	# CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: expected offset in '.cv_fpo_stackalloc' directive
23	.cv_fpo_stackalloc 20 asdf
24	# CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: unexpected tokens in '.cv_fpo_stackalloc' directive
25	.cv_fpo_stackalloc 20
26	.cv_fpo_endprologue asdf
27	# CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: unexpected tokens in '.cv_fpo_endprologue' directive
28	.cv_fpo_endprologue
29
30	addl $20, %esp
31	popl %ebp
32	retl
33	.cv_fpo_endproc asdf
34	# CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: unexpected tokens in '.cv_fpo_endproc' directive
35	.cv_fpo_endproc
36
37	.section	.debug$S,"dr"
38	.p2align	2
39	.long	4                       # Debug section magic
40	.cv_fpo_data
41	# CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: expected symbol name
42	.cv_fpo_data 1
43	# CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: expected symbol name
44	.cv_fpo_data _foo asdf
45	# CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: unexpected tokens in '.cv_fpo_data' directive
46	.cv_fpo_data _foo
47	.long 0
48