# stage2: pass some pointer tests · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/f81b2531cb4904064446f84a06f6e09e4120e28a)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: f81b2531cb4904064446f84a06f6e09e4120e28a

Requested commit: f81b2531cb4904064446f84a06f6e09e4120e28a

Commit: f81b2531cb4904064446f84a06f6e09e4120e28a

Tree: e4bac7a1a13c56b728309086d983091e9e009a65

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: pass some pointer tests

 * New AIR instructions: ptr_add, ptr_sub, ptr_elem_val, ptr_ptr_elem_val
   - See the doc comments for details.
 * Sema: implement runtime pointer arithmetic.
 * Sema: implement elem_val for many-pointers.
 * Sema: support coercion from `*[N:s]T` to `[*]T`.
 * Type: isIndexable handles many-pointers.

```

## Parents

- [ade85471e2cdab466ba685a38c2c7949c9dd1632](https://git.cafe/gitcafe/zig/commit/ade85471e2cdab466ba685a38c2c7949c9dd1632?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/f81b2531cb4904064446f84a06f6e09e4120e28a?format=markdown)
