varnishtest "Duplicate object names"

varnish v1 -errvcl {Instance 'first' redefined.} {
	import debug;
	sub vcl_init {
		new first = debug.obj("FOO");
		new first = debug.obj("BAH");
	}
}

varnish v1 -errvcl {Name 'first' already defined.} {
	import debug;

	backend first { .host = "127.0.0.1"; }

	sub vcl_init {
		new first = debug.obj("FOO");
	}
}
