mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 15:42:49 +00:00
2cd3989cb3
Closes #12706
13 lines
220 B
Zig
13 lines
220 B
Zig
const std = @import("std");
|
|
extern fn testFnPtr(n: c_int, ...) void;
|
|
|
|
const val: c_int = 123;
|
|
|
|
fn func(a: c_int) callconv(.C) void {
|
|
std.debug.assert(a == val);
|
|
}
|
|
|
|
pub fn main() void {
|
|
testFnPtr(2, func, val);
|
|
}
|