summaryrefslogtreecommitdiff
path: root/src/test/java/com/seaofnodes/simple/spill/Chapter24Test-testStack5.smp
blob: 3c2c42088ca56bf312e858436927838f64d309c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{i32 i64 u32 -> u32} write="C";
val _p={u8[~] str -> i64 ptr=str; return write(1,ptr,str#);};
var _sq = { int x ->
    x*x;
};

int score = 5;

if (_sq(2) <= score < _sq(3)) {
_p("In Range");
} else {
_p("Out of range");
}

return 0;