add ex 55 unions

This commit is contained in:
Dave Gauer 2021-03-09 20:04:43 -05:00
parent 0168afd250
commit 72ebf3e460
4 changed files with 87 additions and 1 deletions

View file

@ -280,6 +280,10 @@ const exercises = [_]Exercise{
.main_file = "54_manypointers.zig",
.output = "Memory is a resource.",
},
.{
.main_file = "55_unions.zig",
.output = "Insect report! Ant alive is: true. Bee visited 15 flowers.",
},
};
/// Check the zig version to make sure it can compile the examples properly.