zig/test/behavior/bugs/1111.zig
2021-06-14 00:16:40 +03:00

12 lines
146 B
Zig

const Foo = enum(c_int) {
Bar = -1,
};
test "issue 1111 fixed" {
const v = Foo.Bar;
switch (v) {
Foo.Bar => return,
}
}