'A simple test to exercise nvvm.llvm_to_ptx()
to trigger issues with mismatch NVVM API.'

def test_nvvm_llvm_to_ptx(self):

    def foo(x):
        x[0] = 123
    cukern = compile_kernel(foo, args=(types.int32[::1],), link=())
    llvmir = cukern._func.ptx.llvmir
    ptx = nvvm.llvm_to_ptx(llvmir)
    self.assertIn('foo', ptx.decode('ascii'))
