mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-09 07:08:59 +00:00
12 lines
220 B
Zig
12 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);
|
|
}
|