'Test issue #1734'

def test_del_at_beginning_of_loop(self):

    @njit
    def f(arr):
        res = 0
        for i in (0, 1):
            t = arr[i]
            if (t[i] > 1):
                res += t[i]
        return res
    arr = np.ones((2, 2))
    init_stats = rtsys.get_allocation_stats()
    f(arr)
    cur_stats = rtsys.get_allocation_stats()
    self.assertEqual((cur_stats.alloc - init_stats.alloc), (cur_stats.free - init_stats.free))
