summaryrefslogtreecommitdiff
path: root/tests/errors/e_cdefemptysue.pyx
blob: f71370f4a1e41c54ca3a374375ba380e69d430c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# mode: error

cdef struct spam:
	pass

ctypedef union eggs:
	pass

cdef enum ham:
	pass
_ERRORS = u"""
3:5: Empty struct or union definition not allowed outside a 'cdef extern from' block
6:0: Empty struct or union definition not allowed outside a 'cdef extern from' block
9:5: Empty enum definition not allowed outside a 'cdef extern from' block
"""