add a regression test for #704

closes #704
master
Andrew Kelley 2019-02-25 20:18:35 -05:00
parent 152db27146
commit 4b7e285b76
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9
2 changed files with 8 additions and 0 deletions

View File

@ -24,6 +24,7 @@ comptime {
_ = @import("behavior/bugs/421.zig");
_ = @import("behavior/bugs/655.zig");
_ = @import("behavior/bugs/656.zig");
_ = @import("behavior/bugs/704.zig");
_ = @import("behavior/bugs/726.zig");
_ = @import("behavior/bugs/828.zig");
_ = @import("behavior/bugs/920.zig");

View File

@ -0,0 +1,7 @@
const xxx = struct {
pub fn bar(self: *xxx) void {}
};
test "bug 704" {
var x: xxx = undefined;
x.bar();
}