blob: 1b04ecab468a63fd0f49a310bfb05b96734176d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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);
}
|