#spvar = sparse (30^3, 1, 100);
spvar = spalloc (30^3, 1, 100);

#for i = [4 1154 3 4] # to cause segfault
for i = [4 1154 3]    # to see bad variable indices
  spvar(i) += i
endfor
