Import Debian changes 20180207-1
[hcoop/debian/mlton.git] / regression / wordn-array.sml
CommitLineData
7f918cf1
CE
1(* Make sure that arrays of odd-size words work. *)
2
3functor F (W: WORD) =
4 struct
5 val v = Vector.tabulate (10, W.fromInt)
6 val () = print (concat [W.toString (Vector.sub (v, 9)), "\n"])
7 end
8
9structure S = F (Word5)
10structure S = F (Word7)
11structure S = F (Word9)
12structure S = F (Word14)
13structure S = F (Word17)
14structure S = F (Word22)
15structure S = F (Word30)