authorgravatar for topolarity@tapscott.meCody Tapscott <topolarity@tapscott.me> 2022-10-05 05:34:49-07:00
committergravatar for topolarity@tapscott.meCody Tapscott <topolarity@tapscott.me> 2022-11-10 12:23:59-07:00
logb1357091ae0876645d75a608bd1e26f21cec7c13
tree3fbf06c51ed848e4ad01772bcf950fd1c64b66c4
parentfbda15632dfb4ddfd931b5acc0c36a3122b7e464

Add test case for #12043

This bug is already resolved, just want to make sure we don't lose the test case. Closes #12043

2 files changed, 13 insertions(+), 0 deletions(-)

test/behavior.zig+1
......@@ -86,6 +86,7 @@ test {
8686 _ = @import("behavior/bugs/12003.zig");
8787 _ = @import("behavior/bugs/12025.zig");
8888 _ = @import("behavior/bugs/12033.zig");
89 _ = @import("behavior/bugs/12043.zig");
8990 _ = @import("behavior/bugs/12430.zig");
9091 _ = @import("behavior/bugs/12486.zig");
9192 _ = @import("behavior/bugs/12488.zig");
test/behavior/bugs/12043.zig created+12
......@@ -0,0 +1,12 @@
1const std = @import("std");
2const expect = std.testing.expect;
3
4var ok = false;
5fn foo(x: anytype) void {
6 ok = x;
7}
8test {
9 const x = &foo;
10 x(true);
11 try expect(ok);
12}