mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 06:14:33 +00:00
7 lines
169 B
Zig
7 lines
169 B
Zig
const c = @cImport(@cInclude("foo.h"));
|
|
const std = @import("std");
|
|
const testing = std.testing;
|
|
|
|
test "c import" {
|
|
try comptime testing.expect(c.NUMBER == 1234);
|
|
}
|