mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
11 lines
234 B
Zig
11 lines
234 B
Zig
pub export fn foo() c_int {
|
|
var a: c_int = 1;
|
|
_ = &a;
|
|
var b: c_int = 2;
|
|
_ = &b;
|
|
return a + b;
|
|
}
|
|
pub const MAKELOCAL = @compileError("unable to translate C expr: unexpected token .Equal"); // macro.c:1:9
|
|
|
|
// syntax
|