mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
4307436b99
And fix test cases to make them pass. This is in preparation for starting to pass behavior tests with self-hosted.
12 lines
146 B
Zig
12 lines
146 B
Zig
const Foo = extern enum {
|
|
Bar = -1,
|
|
};
|
|
|
|
test "issue 1111 fixed" {
|
|
const v = Foo.Bar;
|
|
|
|
switch (v) {
|
|
Foo.Bar => return,
|
|
}
|
|
}
|