summaryrefslogtreecommitdiffhomepage
path: root/tools/go_marshal/test/external
diff options
context:
space:
mode:
Diffstat (limited to 'tools/go_marshal/test/external')
-rw-r--r--tools/go_marshal/test/external/external.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/go_marshal/test/external/external.go b/tools/go_marshal/test/external/external.go
index 4be3722f3..26fe8e0c8 100644
--- a/tools/go_marshal/test/external/external.go
+++ b/tools/go_marshal/test/external/external.go
@@ -21,3 +21,11 @@ package external
type External struct {
j int64
}
+
+// NotPacked is an unaligned Marshallable type for use in testing.
+//
+// +marshal
+type NotPacked struct {
+ a int32
+ b byte `marshal:"unaligned"`
+}