blob: 831b21275702933bad82e363f38512cd1ceb1a4c [file]
// Copyright 2019 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 banjo.examples.attributes;
type none_struct = struct {
foo int32;
bar int32;
baz int32;
};
@packed
type packed_struct = struct {
foo int32;
bar int32;
baz int32;
};
type none_union = strict union {
1: foo int32;
2: bar int32;
3: baz int32;
};
@packed
type packed_union = strict union {
1: foo int32;
2: bar int32;
3: baz int32;
};