mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
14 lines
231 B
Zig
14 lines
231 B
Zig
const std = @import("std");
|
|
const expect = std.testing.expect;
|
|
|
|
fn A(
|
|
comptime T: type,
|
|
comptime destroycb: ?*const fn (?*T) callconv(.C) void,
|
|
) !void {
|
|
try expect(destroycb == null);
|
|
}
|
|
|
|
test {
|
|
try A(u32, null);
|
|
}
|