

def test_enum():
    ffi = FFI()
    ffi.cdef('\n        enum Enum { POS = +1, TWO = 2, NIL = 0, NEG = -1};\n        ')
    C = ffi.dlopen(None)
    assert (C.POS == 1)
    assert (C.TWO == 2)
    assert (C.NIL == 0)
    assert (ffi.NEG == (- 1))

dataset/ETHPy150Open johncsnyder/SwiftKitten/cffi/testing/cffi0/test_parsing.py test_enum/VarMisuse@60/111 `C`->`ffi`