summaryrefslogtreecommitdiff
path: root/test/fmtalign.myr
blob: 37b0564568dd9de3f93a76896795f3cd367521e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std

pkg = 
    type msg = union
        `Tversion   tversion
    ;;
    type tversion = struct
        tag : uint16
        version : byte[:]
    ;;
;;

const main = {
    var msg=`Tversion [.tag=45, .version="9P2000"]
    std.put("{}\n", msg)
}