aboutsummaryrefslogtreecommitdiff
path: root/test/standalone/issue_12706/main.zig
blob: dc402ab92f80be8fae8a884c8c7b6b9452d57272 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
}