--- /dev/null
+# $Id$
+
+test "VCL compiler coverage test: vcc_xref.c"
+
+varnish v1 -badvcl {
+ backend b { .host = "127.0.0.1"; }
+ sub vcl_recv { set obj.ttl = 1 w; }
+}
+
+varnish v1 -badvcl {
+ backend b { .host = "127.0.0.1"; }
+
+ sub foo { set obj.ttl = 1 w; }
+ sub vcl_recv { call foo ; }
+}
+
+varnish v1 -badvcl {
+ backend b { .host = "127.0.0.1"; }
+
+ sub vcl_recv { discard; }
+}
+
+varnish v1 -badvcl {
+ backend b { .host = "127.0.0.1"; }
+
+ sub foo { discard; }
+ sub vcl_recv { call foo; }
+}
+
+varnish v1 -badvcl {
+ backend b { .host = "127.0.0.1"; }
+
+ sub foo { call foo; }
+ sub vcl_recv { call foo; }
+}
+
+varnish v1 -badvcl {
+ backend b { .host = "127.0.0.1"; }
+
+ sub bar { call foo; }
+ sub foo { call bar; }
+ sub vcl_recv { call foo; }
+}
+
+
+varnish v1 -badvcl {
+ backend b { .host = "127.0.0.1"; }
+
+ acl foo { "localhost"; }
+
+}
+