vtest "legal symbol names"

vinyl v1 \
	-syntax 4.0 \
	-arg "-s my-store=default" \
	-vcl {
	import directors;

	acl my-acl { "${localhost}"; }

	probe my-pb { }
	backend my-be {
		.host = "${bad_backend}";
		.probe = my-pb;
	}

	sub vcl_init {
		new my-dir = directors.round_robin();
		my-dir.add_backend(my-be);
	}

	sub vcl_recv {
		call my-sub;
	}

	sub my-sub {
		if (client.ip ~ my-acl) { }
		set req.storage = storage.my-store;
		set req.backend_hint = my-dir.backend();
	}
} -start

vinyl v1 -cli "vcl.label my-label vcl1"

vinyl v1 -vcl {
	backend dummy { .host = "${bad_backend}"; }

	sub vcl_recv {
		return (vcl(my-label));
	}
}
