aboutsummaryrefslogtreecommitdiff
path: root/flatcc/test/union_vector_test
diff options
context:
space:
mode:
Diffstat (limited to 'flatcc/test/union_vector_test')
-rw-r--r--flatcc/test/union_vector_test/union_vector.fbs26
1 files changed, 26 insertions, 0 deletions
diff --git a/flatcc/test/union_vector_test/union_vector.fbs b/flatcc/test/union_vector_test/union_vector.fbs
new file mode 100644
index 0000000..73b8800
--- /dev/null
+++ b/flatcc/test/union_vector_test/union_vector.fbs
@@ -0,0 +1,26 @@
+table MuLan {
+ sword_attack_damage: int;
+}
+
+table Rapunzel {
+ hair_length: int;
+}
+
+table Belle {
+ books_read: int;
+}
+
+union Character {
+ MuLan,
+ Rapunzel,
+ Belle,
+}
+
+table Movie {
+ characters: [Character];
+ belles: [Belle];
+ character: Character;
+}
+
+root_type Movie;
+file_identifier "MOVI";