<s> from __future__ import print_function , absolute_import <EOL> import numpy <EOL> from numba import cuda <EOL> from numba . cuda . testing import unittest <EOL> class TestFreeVar ( unittest . TestCase ) : <EOL> def test_freevar ( self ) : <EOL> """<STR_LIT>""" <EOL> from numba import float32 <EOL> size = <NUM_LIT> <EOL> nbtype = float32 <EOL> @ cuda . jit ( "<STR_LIT>" ) <EOL> def foo ( A , i ) : <EOL> "<STR_LIT>" <EOL> sdata = cuda . shared . array ( size , <EOL> dtype = nbtype ) <EOL> A [ i ] = sdata [ i ] <EOL> A = numpy . arange ( <NUM_LIT:2> , dtype = "<STR_LIT>" ) <EOL> foo ( A , <NUM_LIT:0> ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
