mirror of
https://github.com/ziglang/zig.git
synced 2025-12-28 00:53:18 +00:00
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,
|
|
}
|
|
}
|