| // 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; | |
| }; |