summaryrefslogtreecommitdiff
path: root/tests/compile/excvaldecl.pyx
blob: 06af71ce082580fc046e38e102e551e839847520 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# mode: compile

cdef int spam() except 42:
    pass

cdef float eggs() except 3.14:
    pass

cdef char *grail() except NULL:
    pass

cdef int tomato() except *:
    pass

cdef int brian() except? 0:
    pass

cdef int silly() except -1:
    pass

cdef int not_so_silly() noexcept:
    pass

cdef int not_so_silly_and_gilless() noexcept nogil:
    pass

spam()
eggs()
grail()
tomato()
brian()
silly()
not_so_silly()
not_so_silly_and_gilless()