zig/test/cases/bugs/1111.zig

13 lines
170 B
Zig
Raw Normal View History

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