aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/ast/testdata/errors.txt
diff options
context:
space:
mode:
authorNecip Fazil Yildiran <necip@google.com>2020-08-10 14:43:38 +0000
committerDmitry Vyukov <dvyukov@google.com>2020-08-13 13:50:25 +0200
commitf5442bde55872d703f184f8617329f706bad8149 (patch)
tree14e121020d6aacd857b80351f01546818f19a74b /pkg/ast/testdata/errors.txt
parentee7cb8b69583db417b187b53f4765c3a403cd4cf (diff)
pkg, prog: add per-field direction attribute
Diffstat (limited to 'pkg/ast/testdata/errors.txt')
-rw-r--r--pkg/ast/testdata/errors.txt13
1 files changed, 13 insertions, 0 deletions
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