summaryrefslogtreecommitdiff
path: root/test/struct1.myr
blob: 58e822cc187127773b981739a7f4d3b6b5e8a868 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use std
/* 
make sure assigning to a 1-element struct works; exit status should be 12
*/
type val = struct
	a : int
;;

const main = {
	var s : val
	s.a = 12
	std.exit(s.a)
}