Skip to content

Commit

Permalink
add regression test for already fixed bug
Browse files Browse the repository at this point in the history
closes #3586
  • Loading branch information
andrewrk committed Feb 21, 2020
1 parent 6aecc26 commit 5709737
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/stage1/behavior.zig
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ comptime {
_ = @import("behavior/bugs/3112.zig");
_ = @import("behavior/bugs/3367.zig");
_ = @import("behavior/bugs/3384.zig");
_ = @import("behavior/bugs/3586.zig");
_ = @import("behavior/bugs/3742.zig");
_ = @import("behavior/bugs/394.zig");
_ = @import("behavior/bugs/421.zig");
Expand Down
11 changes: 11 additions & 0 deletions test/stage1/behavior/bugs/3586.zig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const NoteParams = struct {};

const Container = struct {
params: ?NoteParams,
};

test "fixed" {
var ctr = Container{
.params = NoteParams{},
};
}

0 comments on commit 5709737

Please sign in to comment.