aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/testdata/errors2.txt
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-05-16 18:05:05 +0200
committerDmitry Vyukov <dvyukov@google.com>2019-05-16 18:05:05 +0200
commit76fc461b55cfe334e8d4be121f61fa25d079f8ba (patch)
tree88cc3472e7352c2cd74f3234acb4bd2083ff61d4 /pkg/compiler/testdata/errors2.txt
parentf59a9cb554a8dfcbe13c8a0775542ee7a0d8a353 (diff)
pkg/compiler: add offsetof type
Similar to C offsetof gives offset of a field from the beginning of the parent struct. We have several TODOs in descriptions asking for this.
Diffstat (limited to 'pkg/compiler/testdata/errors2.txt')
-rw-r--r--pkg/compiler/testdata/errors2.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/compiler/testdata/errors2.txt b/pkg/compiler/testdata/errors2.txt
index 311be3ea9..db8f87e25 100644
--- a/pkg/compiler/testdata/errors2.txt
+++ b/pkg/compiler/testdata/errors2.txt
@@ -147,6 +147,8 @@ slen1 {
f5 len[slen22:f, int32] ### len path slen22 does not refer to a struct
f6 len[syscall, int32] ### no argument name after syscall reference
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
slen2 ptr[in, array[slen2]]
slen21 slen2
slen22 array[slen2]