blob: be324c0f24cddc02c4c83019b99b4b301fcb6ae2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use std
/* test reading and writing to struct members. exits with 42. */
type pair = struct
a : int
b : int
;;
const main = {
var s : pair
s.a = 12
s.b = 30
std.exit(s.a + s.b)
}
|