From 14d1e424b6a582d021c73c88e1f0c5f0962ecc9d Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 23 Jan 2018 11:05:51 +0100 Subject: pkg/compiler: allow use of empty strings This comes up in several contexts in netfilter. --- pkg/compiler/testdata/all.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'pkg/compiler/testdata') diff --git a/pkg/compiler/testdata/all.txt b/pkg/compiler/testdata/all.txt index 088e119ef..88e45dba4 100644 --- a/pkg/compiler/testdata/all.txt +++ b/pkg/compiler/testdata/all.txt @@ -9,12 +9,19 @@ strings { f1 string f2 string["foo"] f3 string["foo", 10] - f4 string[string_flags, 10] + f4 string[string_flags1, 10] f5 stringnoz f6 stringnoz["foo"] + f7 string[""] + f8 string["", 10] + f9 stringnoz[""] + f11 stringnoz[string_flags1] + f12 string[string_flags2] + f13 stringnoz[string_flags2] } [packed] -string_flags = "foo", "barbaz" +string_flags1 = "foo", "barbaz" +string_flags2 = "" # Proc type. -- cgit mrf-deployment