

def test_pipe():
    ffi = FFI(backend=FakeBackend())
    ffi.cdef('int pipe(int pipefd[2]);')
    C = ffi.dlopen(None)
    func = C.pipe
    assert (func.name == 'pipe')
    assert (func.BType == '<func (<pointer to <int>>), <int>, False>')

dataset/ETHPy150Open johncsnyder/SwiftKitten/cffi/testing/cffi0/test_parsing.py test_pipe/original