zig/test/behavior/bugs/1111.zig

12 lines
146 B
Zig
Raw Normal View History

const Foo = enum(c_int) {
2018-06-21 13:32:05 +01:00
Bar = -1,
};
test "issue 1111 fixed" {
const v = Foo.Bar;
switch (v) {
Foo.Bar => return,
2018-06-21 13:32:05 +01:00
}
}