#zig build-obj {
--name test -fno-emit-bin
-Mroot=test.zig
#}

#write test.zig {
const std = @import("std");

pub const DwarfSection = enum {
    eh_frame,
    eh_frame_hdr,
};

export fn entry() void {
    const section = inline for (@typeInfo(DwarfSection).@"enum".field_names) |section_name| {
        if (std.mem.eql(u8, section_name, "eh_frame")) break section_name;
    };
    _ = section;
}
#}
#update
#check errors {
test.zig:9:28: error: incompatible types: '[:0]const u8' and 'void'
#}
