'Make sure we can compile the following kernel with freevar reference
in macros'

def test_freevar(self):

    from numba import float32
    size = 1024
    nbtype = float32
    @cuda.jit('(float32[::1],    intp)')
    def foo(A, i):
        'Dummy    function'
        sdata = cuda.shared.array(size, dtype=nbtype)
        A[i] = sdata[i]
    A = np.arange(2, dtype='float32')
    foo(A, 0)
