mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-08 06:44:27 +00:00
10 lines
182 B
Zig
10 lines
182 B
Zig
const Foo = i32;
|
|
export fn foo(a: *i32) Foo {
|
|
return @fieldParentPtr("a", a);
|
|
}
|
|
|
|
// error
|
|
// backend=llvm
|
|
// target=native
|
|
//
|
|
// :3:12: error: expected pointer type, found 'i32'
|