'Note that scalar output is a 0-dimension array that acts as
a pointer to the output location.'

@tag('important')
def test_scalar_output(self):

    @guvectorize(['void(int32[:],    int32[:])'], '(n)->()', target=self.target, nopython=True)
    def sum_row(inp, out):
        tmp = 0.0
        for i in range(inp.shape[0]):
            tmp += inp[i]
        out[()] = tmp
    inp = np.arange(30000, dtype=np.int32).reshape(10000, 3)
    out = sum_row(inp)
    for i in range(inp.shape[0]):
        assert (out[i] == inp[i].sum())
