Skip to content

Commit

Permalink
Add missing capnp test file
Browse files Browse the repository at this point in the history
  • Loading branch information
dpwm committed Oct 4, 2023
1 parent 941fe90 commit 32cc786
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions capnp-tests/08-schema-examples.capnp
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@0xdb8a61f1a2e0afa2;

using Schema = import "/schema.capnp";

const void :Schema.Type = ();

const field1 :Schema.Field = (
slot = (
type = (int32=void),
offset = 3,
)
);

const node :Schema.Node = (
struct = (
fields = [
(name="void", slot=(type=(void=void))),
(name="bool", slot=(type=(bool=void))),
(name="int32", slot=(type=(int32=void), offset=0)),
(name="float32", slot=(type=(float32=void))),
(name="text", slot=(type=(text=void))),
(name="data", slot=(type=(data=void))),
(name="int32List", slot=(type=(list=(elementType=(int32=void))))),
(name="struct", slot=(type=(struct=(typeId=0x0)))),
],
),
);

0 comments on commit 32cc786

Please sign in to comment.