export fn a() void {
    const E = enum {};
    var e: E = undefined;
    _ = &e;
    _ = @intFromEnum(e);
}

// error
//
// :5:22: error: cannot use @intFromEnum on empty enum 'tmp.a.E'
// :2:15: note: enum declared here
