blob: fa8d78acb2d0d417bed732579b84da1a8ff1cb51 [file] [log] [blame] [edit]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library example;
type OneStringOfMaxLengthFive = struct {
the_string string:5;
};
type StructOnlyPrimitives = struct {
i int32;
b bool;
u uint16;
};
type TableOnlyPrimitives = table {
1: i int32;
2: b bool;
3: u uint16;
};
type UnionOnlyPrimitives = flexible union {
1: i int32;
2: b bool;
3: u uint16;
};
type UnionWithTableStructString = flexible union {
1: struct StructOnlyPrimitives;
2: table TableOnlyPrimitives;
3: union UnionOnlyPrimitives;
};