3
���h� � @ s^ d dl Z d dlZd dlZd dlZd dlZd dlmZmZm Z ddl
mZ G dd� dej�Z
dS )� N)�assert_�assert_equal�IS_PYPY� )�utilc @ s� e Zd ZdZejjddjd��dd� �Zejj e
dd�d d
� �Zdd� Zejj
ejd
kdd�dd� �Zejj
ejd
kdd�dd� �ZdS )�TestF77Callbacka�
subroutine t(fun,a)
integer a
cf2py intent(out) a
external fun
call fun(a)
end
subroutine func(a)
cf2py intent(in,out) a
integer a
a = a + 11
end
subroutine func0(a)
cf2py intent(out) a
integer a
a = 11
end
subroutine t2(a)
cf2py intent(callback) fun
integer a
cf2py intent(out) a
external fun
call fun(a)
end
subroutine string_callback(callback, a)
external callback
double precision callback
double precision a
character*1 r
cf2py intent(out) a
r = 'r'
a = callback(r)
end
subroutine string_callback_array(callback, cu, lencu, a)
external callback
integer callback
integer lencu
character*8 cu(lencu)
integer a
cf2py intent(out) a
a = callback(cu, lencu)
end
�namezt,t2�,c C s | j |� d S )N)�check_function)�selfr � r �?/tmp/pip-build-5_djhm0z/numpy/numpy/f2py/tests/test_callback.py�test_all> |