--- a/inst/tars.m
+++ b/inst/tars.m
@@ -26,3 +26,10 @@
   s = cell2struct (varargin, deblank (cellstr (argn)), 2);
 
 endfunction
+
+%!shared s, x, y, z
+%! x = 2;
+%! y = 3;
+%! z = "foo";
+%! s = tars (x, y, z);
+%!assert ({s.x s.y s.z}, {x y z});