nx_rw_hashlit.nx source
↩ module page · 17 lines · 592 B
1// nx_rw_hashlit.nx -- DELIBERATE TRAP WITNESS (pack-rules vet). Tactic under test: the characters
2// # and ! inside a string literal (documented empty-.s trap class). Exit 0 iff both literals
3// carry the exact bytes. While ACTIVE this is EXPECTED TO FAIL THE LANE. Not a defect.
4// license_tier: ORIGINAL
5import "nx_syscalls.nx"
6
7func main(argc: i64, argv: *i64) -> i64 {
8 let s: *u8 = "hash # bang" as *u8
9 let t: *u8 = "shout!" as *u8
10 let c: i64 = s[5] as i64
11 let d: i64 = t[5] as i64
12 if c == 35 {
13 if d == 33 { sys_exit(0) }
14 }
15 sys_exit(1)
16 return 0
17}