ó
æ Y]c           @` sÒ   d  d l  m Z m Z m Z d  d l Z d  d l Z d d l m Z d  d l m	 Z	 e j
 j e j ƒ  d k d d ƒd	 e j f d
 „  ƒ  Yƒ Z e j
 j e j ƒ  d k d d ƒd e j f d „  ƒ  Yƒ Z d S(   i    (   t   divisiont   absolute_importt   print_functionNi   (   t   util(   t   assert_equalt   Darwint   reasonsV   Prone to error when run with numpy/f2py/tests on mac os, but not when run in isolationt   TestMultilinec           B` s/   e  Z d  Z d Z d j d e ƒ Z d „  Z RS(   s   .pyft	   multilines  
python module {module}
    usercode '''
void foo(int* x) {{
    char dummy = ';';
    *x = 42;
}}
'''
    interface
        subroutine foo(x)
            intent(c) foo
            integer intent(out) :: x
        end subroutine foo
    end interface
end python module {module}
    t   modulec         C` s   t  |  j j ƒ  d ƒ d  S(   Ni*   (   R   R	   t   foo(   t   self(    (    sD   lib/python2.7/site-packages/numpy/f2py/tests/test_semicolon_split.pyt   test_multiline!   s    (   t   __name__t
   __module__t   suffixt   module_namet   formatt   codeR   (    (    (    sD   lib/python2.7/site-packages/numpy/f2py/tests/test_semicolon_split.pyR   	   s   t   TestCallstatementc           B` s/   e  Z d  Z d Z d j d e ƒ Z d „  Z RS(   s   .pyft   callstatementsv  
python module {module}
    usercode '''
void foo(int* x) {{
}}
'''
    interface
        subroutine foo(x)
            intent(c) foo
            integer intent(out) :: x
            callprotoargument int*
            callstatement {{ &
                ; &
                x = 42; &
            }}
        end subroutine foo
    end interface
end python module {module}
    R	   c         C` s   t  |  j j ƒ  d ƒ d  S(   Ni*   (   R   R	   R
   (   R   (    (    sD   lib/python2.7/site-packages/numpy/f2py/tests/test_semicolon_split.pyt   test_callstatement@   s    (   R   R   R   R   R   R   R   (    (    (    sD   lib/python2.7/site-packages/numpy/f2py/tests/test_semicolon_split.pyR   %   s   (   t
   __future__R    R   R   t   platformt   pytestt    R   t   numpy.testingR   t   markt   skipift   systemt   F2PyTestR   R   (    (    (    sD   lib/python2.7/site-packages/numpy/f2py/tests/test_semicolon_split.pyt   <module>   s   				