nx_region_isolated_test.nx source
↩ module page · 17 lines · 470 B
1// Diag v7: call function that takes struct ptr but does NOTHING.
2// Isolates whether the bug is "struct-ptr arg + nx_region call"
3// or "struct-ptr arg alone in this import context".
4
5import "nx_syscalls.nx"
6import "nx_image.nx"
7import "nx_skin_texture.nx"
8
9func nothing_func(v: *SkinTextureVerdict) -> i64 {
10 return 0
11}
12
13func main() -> i64 {
14 let v: *SkinTextureVerdict = (sys_mmap(96)) as *SkinTextureVerdict
15 nothing_func(v)
16 return 0
17}