mirror of
https://github.com/ziglang/zig.git
synced 2024-12-04 02:48:50 +00:00
12 lines
146 B
Zig
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,
|
|
}
|
|
}
|