diff options
| author | Paul Chaignon <paul.chaignon@gmail.com> | 2023-11-09 17:07:58 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2023-11-13 13:40:05 +0000 |
| commit | b531ad31dfd413ccc5ed21116a0556f3bd0107ae (patch) | |
| tree | 6bc1dfba5d4b4b1d1f0fc037c8787d77834fbf51 /sys/test/test.txt | |
| parent | b941cfc45894745b4b99d06c762cd78d3c6beca5 (diff) | |
prog, sys: test cases for struct AUTO
This commit adds a few test cases for the support of AUTO for structs.
It covers:
- A simple struct with only const and len types.
- A nested struct case.
- An error case when a struct has an int type field.
Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Diffstat (limited to 'sys/test/test.txt')
| -rw-r--r-- | sys/test/test.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/test/test.txt b/sys/test/test.txt index fed8d0f47..768b7b584 100644 --- a/sys/test/test.txt +++ b/sys/test/test.txt @@ -811,6 +811,21 @@ auto_struct0 { f2 int32 } +test$auto1(a const[0x42], b ptr[in, auto_struct1], c len[b], d int32) + +auto_struct1 { + f0 len[parent, int32] + f1 const[0x43, int32] + f2 const[0, int32] +} + +test$auto2(a const[0x42], b ptr[in, auto_struct2], c len[b], d int32) + +auto_struct2 { + f0 len[parent, int32] + f1 auto_struct1 +} + # Attributes resource disabled_resource[int32] |
