aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/ast/testdata
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-09-04 19:56:54 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-09-04 20:25:22 +0200
commit94e151ceb51191698a068d96191cdd86326050f9 (patch)
tree57c202c6c383e9999a8f4588c88396b52d3b72e6 /pkg/ast/testdata
parentd878c4ff43fe76b2c85851a627a4bcf51da51f41 (diff)
pkg/ast: prohibit empty strings
This is currently unsupported and unused.
Diffstat (limited to 'pkg/ast/testdata')
-rw-r--r--pkg/ast/testdata/all.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/ast/testdata/all.txt b/pkg/ast/testdata/all.txt
index b71b7919c..3f647e4ca 100644
--- a/pkg/ast/testdata/all.txt
+++ b/pkg/ast/testdata/all.txt
@@ -24,6 +24,12 @@ define FOO `bar ### C expression is not terminated
foo(x int32[1:2:3, opt]) ### unexpected ':', expecting ']'
+s0 {
+ f0 string[""] ### empty string literals are not supported
+}
+
+sf0 = "", "1" ### empty string literals are not supported
+
include <linux/foo.h>
include "linux/foo.h"
incdir </foo/bar>