

def test__is_constant_globalvar():
    for (input, expected_output) in [('int a;', False), ('const int a;', True), ('int *a;', False), ('const int *a;', False), ('int const *a;', False), ('int *const a;', True), ('int a[5];', False), ('const int a[5];', False), ('int *a[5];', False), ('const int *a[5];', False), ('int const *a[5];', False), ('int *const a[5];', False), ('int a[5][6];', False), ('const int a[5][6];', False)]:
        ffi = FFI()
        input.cdef(input)
        declarations = ffi._parser._declarations
        assert (('constant a' in declarations) == expected_output)
        assert (('variable a' in declarations) == (not expected_output))

dataset/ETHPy150Open johncsnyder/SwiftKitten/cffi/testing/cffi0/test_parsing.py test__is_constant_globalvar/VarMisuse@110/229 `ffi`->`input`