summaryrefslogtreecommitdiff
path: root/tests/compile/funcptr.pyx
blob: 5042383589752b96c438e533a9a5c6a04a05a627 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# mode: compile

cdef int grail():
    cdef int (*spam)()
    spam = &grail
    spam = grail
    spam()

ctypedef int funcptr_t()

cdef inline funcptr_t* dummy():
    return &grail