def use_c_pointer(x):
    """
    Running in Python will cause a segfault.
    """
    threadstate = savethread()
    x += 1
    restorethread(threadstate)
    return x

    Running in Python will cause a segfault.
    
numba/tests/ctypes_usecases.py