summaryrefslogtreecommitdiff
path: root/tests/run/ptr_warning_T714.pyx
blob: 3ec8b5b12477817ff48b3d496df8cb8029128f0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# mode: run
# tag: werror
# ticket: 714

def test_ptr():
    """
    >>> test_ptr()
    123
    """
    cdef int a
    cdef int *ptr

    ptr = &a
    ptr[0] = 123
    return a