From f5442bde55872d703f184f8617329f706bad8149 Mon Sep 17 00:00:00 2001 From: Necip Fazil Yildiran Date: Mon, 10 Aug 2020 14:43:38 +0000 Subject: pkg, prog: add per-field direction attribute --- pkg/ast/testdata/errors.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'pkg/ast/testdata/errors.txt') diff --git a/pkg/ast/testdata/errors.txt b/pkg/ast/testdata/errors.txt index 30af16d9a..463158756 100644 --- a/pkg/ast/testdata/errors.txt +++ b/pkg/ast/testdata/errors.txt @@ -30,6 +30,7 @@ call() ("attr1") call() (42) call() ( ### unexpected '\n', expecting int, identifier, string call() () ### unexpected ')', expecting int, identifier, string +call(foo int32 (attr)) ### unexpected '(', expecting ',', ')' define FOO bar @@ -81,3 +82,15 @@ type templ_struct0[A, B] { typ const[A, int16] data B } [align_4] + +s4 { + f0 int8 (attr) + f1 int8 (attr1, attr2[arg1, "arg2"]) + f2 int8 ("attr1") +} + +s5 { + f0 int8 ( ### unexpected '\n', expecting int, identifier, string + +s6 { + f0 int8 () ### unexpected ')', expecting int, identifier, string \ No newline at end of file -- cgit mrf-deployment