The following code fails.
B = spzeros(0, 0)
filename = tempname()
A = H5SparseMatrixCSC(filename, name, B)
@test sparse(A) ≈ B
I think the correct solution would be to allow last(rows) < first(rows) (and the same for cols), similar to how regular matrices work (e.g., sprand(0, 0)[0:-1, :] is valid, and returns a 0 x 0 matrix).