mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
11 lines
223 B
Zig
11 lines
223 B
Zig
export fn entry(ptr: *i32) i32 {
|
|
return ptr[1];
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :2:15: error: type '*i32' does not support indexing
|
|
// :2:15: note: operand must be an array, slice, tuple, or vector
|