Files
zig/test/behavior/bugs/12945.zig
2022-09-24 15:15:36 +03:00

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);
}