Example usage in unit test.
This commit is contained in:
parent
362173091d
commit
29a1342d00
7 changed files with 274 additions and 35 deletions
10
tests/example.capnp
Normal file
10
tests/example.capnp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
@0xd120e9a4c43868ab;
|
||||
|
||||
using C = import "../compiler/c.capnp";
|
||||
|
||||
$C.fieldgetset;
|
||||
|
||||
struct Greeting {
|
||||
text @0 :Text = "Default greeting: hello world!";
|
||||
timesToSay @1 :UInt32;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue