From 2376f0f937b8e6b457ef1fdf088b8b7059dcb0e2 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 14 May 2019 16:21:19 +0200 Subject: pkg/compiler: allow to refer to syscall arguments in len paths This allows to use len[syscall:arg] expressions. --- pkg/compiler/testdata/errors2.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/compiler/testdata/errors2.txt') diff --git a/pkg/compiler/testdata/errors2.txt b/pkg/compiler/testdata/errors2.txt index 6b7737ef5..311be3ea9 100644 --- a/pkg/compiler/testdata/errors2.txt +++ b/pkg/compiler/testdata/errors2.txt @@ -145,6 +145,8 @@ slen1 { f3 len[f0:parent, int32] ### parent can't be part of path expressions f4 len[slen2:f, int32] ### len path slen2 does not refer to a struct 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 slen2 ptr[in, array[slen2]] slen21 slen2 slen22 array[slen2] -- cgit mrf-deployment