summaryrefslogtreecommitdiff
path: root/test/fmtalign.myr
diff options
context:
space:
mode:
Diffstat (limited to 'test/fmtalign.myr')
-rw-r--r--test/fmtalign.myr17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/fmtalign.myr b/test/fmtalign.myr
new file mode 100644
index 0000000..9ae3464
--- /dev/null
+++ b/test/fmtalign.myr
@@ -0,0 +1,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.fmt("{}\n", msg)
+}
+