mirror of
https://github.com/ziglang/zig.git
synced 2025-12-16 03:03:09 +00:00
This bug is already resolved, just want to make sure we don't lose the test case. Closes #12043
13 lines
182 B
Zig
13 lines
182 B
Zig
const std = @import("std");
|
|
const expect = std.testing.expect;
|
|
|
|
var ok = false;
|
|
fn foo(x: anytype) void {
|
|
ok = x;
|
|
}
|
|
test {
|
|
const x = &foo;
|
|
x(true);
|
|
try expect(ok);
|
|
}
|