blob: 99c64b6dd4c9d4dafdbb3e8873f29e9cdc7c2b94 [file] [log] [blame]
James Kuszmaulf5eb4682023-09-22 17:16:59 -07001namespace aos.fbs.testing;
2
3attribute "static_length";
4
5table FirstUnion {
6 foo:int (id: 0);
7}
8
9table SecondUnion {
10 bar:double (id: 0);
11}
12
13union UnionType { FirstUnion, SecondUnion }
14
15table TableWithUnion {
16 union_field:UnionType (id: 1);
17}
18
19table MissingVectorLength {
20 vector_no_length:[int] (id: 0);
21}
22
23table NonIntegerVectorLength {
24 vector_badlength:[int] (id: 0, static_length: "abc");
25}
26
27table NegativeVectorLength {
28 vector_badlength:[int] (id: 0, static_length: -1);
29}
30
31table ZeroVectorLength {
32 vector_badlength:[int] (id: 0, static_length: 0);
33}
34
35table MissingStringLength {
36 string_no_length:string (id: 0);
37}
38
39table MissingSubStringLength {
40 substring_no_length:[string] (id: 0, static_length: 3);
41}
42
43// Arbitrary.
44root_type TableWithUnion;