zig/test/behavior/bugs/12680_other_file.zig
Eric Joldasov 50339f595a all: zig fmt and rename "@XToY" to "@YFromX"
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-06-19 12:34:42 -07:00

9 lines
196 B
Zig

// export this function twice
pub export fn testFunc() callconv(.C) usize {
return @intFromPtr(&testFunc);
}
comptime {
@export(testFunc, .{ .name = "test_func", .linkage = .Strong });
}