Add test case
This commit is contained in:
parent
eeda1a1396
commit
f1207a8e74
@ -13,6 +13,7 @@ comptime {
|
||||
_ = @import("cases/bugs/656.zig");
|
||||
_ = @import("cases/bugs/828.zig");
|
||||
_ = @import("cases/bugs/920.zig");
|
||||
_ = @import("cases/bugs/1111.zig");
|
||||
_ = @import("cases/byval_arg_var.zig");
|
||||
_ = @import("cases/cast.zig");
|
||||
_ = @import("cases/const_slice_child.zig");
|
||||
|
12
test/cases/bugs/1111.zig
Normal file
12
test/cases/bugs/1111.zig
Normal file
@ -0,0 +1,12 @@
|
||||
const Foo = extern enum {
|
||||
Bar = -1,
|
||||
};
|
||||
|
||||
test "issue 1111 fixed" {
|
||||
const v = Foo.Bar;
|
||||
|
||||
switch(v) {
|
||||
Foo.Bar => return,
|
||||
else => return,
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user