zig/test/behavior/bugs/12043.zig
2023-09-23 12:36:56 -07:00

14 lines
218 B
Zig

const std = @import("std");
const builtin = @import("builtin");
const expect = std.testing.expect;
var ok = false;
fn foo(x: anytype) void {
ok = x;
}
test {
const x = &foo;
x(true);
try expect(ok);
}