# add behavior test for comptime pointer casting · gitcafe/zig

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

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

Visibility: public

Requested revision: 6e9fbc83ca2cfe145d73a102e4175e49524d0dee

Requested commit: 6e9fbc83ca2cfe145d73a102e4175e49524d0dee

Commit: 6e9fbc83ca2cfe145d73a102e4175e49524d0dee

Tree: b5537977dcf8f72d270ca84740cef82b6596914d

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
add behavior test for comptime pointer casting

comptime `@ptrCast` a subset of an array, then write through it

closes #2444

```

## Parents

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

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