pslang/examples/ir_test.psl

8 lines
117 B
PSL

func print(c: u8):
foreign func putchar(c: i32) -> i32
putchar(c as i32)
mut a = 10ub
let b = a
a = 11ub
print(b)