diff options
| author | Paul Chaignon <paul.chaignon@gmail.com> | 2023-11-19 23:53:28 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2023-11-29 15:13:40 +0000 |
| commit | f819d6f7cb99737851dcaaa51f11190138fd48d5 (patch) | |
| tree | c095d543d3e32f7beba688a403efb0b49431c876 /pkg/compiler/testdata/errors2.txt | |
| parent | 91df311f3d62a7add7cd9340026cfc6290ce55dc (diff) | |
compiler/testdata: add missing error cases
This commit adds error cases that weren't covered before. They were
identified by looking at the coverage numbers for pkg/compiler.
Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Diffstat (limited to 'pkg/compiler/testdata/errors2.txt')
| -rw-r--r-- | pkg/compiler/testdata/errors2.txt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkg/compiler/testdata/errors2.txt b/pkg/compiler/testdata/errors2.txt index 1120f55ad..13e69ef8a 100644 --- a/pkg/compiler/testdata/errors2.txt +++ b/pkg/compiler/testdata/errors2.txt @@ -157,15 +157,24 @@ slen1 { f7 len[syscall:b, int32] ### len target b does not exist f8 offsetof[parent, int32] ### offsetof must refer to fields f9 offsetof[slen1, int32] ### offsetof must refer to fields + f10 len[f0:syscall:b, int32] ### syscall can't be in the middle of path expressions + f11 len[slen3:a, int32] ### len path slen3 does not refer to a struct slen2 ptr[in, array[slen2]] slen21 slen2 + slen3 slen3 slen22 array[slen2] } slen2 { - f int32 + f int32 + f1 slen3 } +slen3 [ + a int32 + b int32 +] + # Resource ctor tests. resource r100[int32] ### resource r100 can't be created (never mentioned as a syscall return value or output argument/field) |
