cusel/parser-tests/if-then-else.good
Juhani Krekelä 02bbcf64d2 First commit
2026-11-13 20:48:22 +02:00

17 lines
183 B
Text

fn max(x: u32, y: u32): u32
if x < y then
return y
else
return x
end
end
fn sign(x: i32): i32
if x < 0 then
return -1
elif x > 0 then
return 1
else
return 0
end
end