Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
edee8c62
Commit
edee8c62
authored
Dec 01, 2019
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure VCL instance actions imply method calls
parent
417bf145
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
v00018.vtc
bin/varnishtest/tests/v00018.vtc
+8
-0
vcc_expr.c
lib/libvcc/vcc_expr.c
+1
-0
No files found.
bin/varnishtest/tests/v00018.vtc
View file @
edee8c62
...
...
@@ -147,3 +147,11 @@ varnish v1 -errvcl {Syntax error} {
directors.round_robin.backend();
}
}
varnish v1 -errvcl {Expected '.' got ';'} {
import directors;
sub vcl_init {
new rr = directors.round_robin();
rr;
}
}
lib/libvcc/vcc_expr.c
View file @
edee8c62
...
...
@@ -1431,6 +1431,7 @@ vcc_Act_Obj(struct vcc *tl, struct token *t, struct symbol *sym)
struct
expr
*
e
=
NULL
;
assert
(
sym
->
kind
==
SYM_INSTANCE
);
ExpectErr
(
tl
,
'.'
);
tl
->
t
=
t
;
vcc_expr4
(
tl
,
&
e
,
sym
->
type
);
ERRCHK
(
tl
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment