q66 / cffi-lua

A portable C FFI for Lua 5.1+
MIT License
181 stars 24 forks source link

Anonymous enum definition regression #12

Closed vsergeev closed 4 years ago

vsergeev commented 4 years ago
local ffi = jit and require('ffi') or require('cffi')

ffi.cdef[[
    enum {FOO = 1};
    enum {BAR = 2};
]]

ffi.cdef[[
    enum {QUX = 3};
]] -- expected: no error, get: input:1: 'enum 3' redefined

Introduced in a335870.