def test_passing_array_ctypes_voidptr_pass_ptr(self):
        """
        Test the ".ctypes" attribute of an array can be passed
        as a pointer parameter of the right type.
        """
        cfunc = self.check_array_ctypes(use_c_vcube)

        # Non-compatible pointers are not accepted (here float32* vs. float64*)
        with self.assertRaises(errors.TypingError) as raises:
            cfunc(np.float32([0.0]))

        self.assertIn("No implementation of function ExternalFunctionPointer",
                      str(raises.exception))

        Test the ".ctypes" attribute of an array can be passed
        as a pointer parameter of the right type.
        
numba/tests/test_ctypes.py