Commit dae5882f by Tobias Burnus Committed by Tobias Burnus

gfortran.texi (Interoperable Subroutines and Functions): Fix example.

2009-11-19  Tobias Burnus  <burnus@net-b.de>

       * gfortran.texi (Interoperable Subroutines and Functions): Fix
       example.

From-SVN: r154326
parent 87af78d4
2009-11-19 Tobias Burnus <burnus@net-b.de>
* gfortran.texi (Interoperable Subroutines and Functions): Fix
example.
2009-11-18 Janus Weil <janus@gcc.gnu.org> 2009-11-18 Janus Weil <janus@gcc.gnu.org>
PR fortran/42072 PR fortran/42072
......
...@@ -2009,9 +2009,10 @@ Thus the following C prototype ...@@ -2009,9 +2009,10 @@ Thus the following C prototype
matches the Fortran declaration matches the Fortran declaration
@smallexample @smallexample
integer(c_int) func(i,j) integer(c_int) function func(i,j)
integer, VALUE :: i use iso_c_binding, only: c_int
integer :: j integer(c_int), VALUE :: i
integer(c_int) :: j
@end smallexample @end smallexample
Note that pointer arguments also frequently need the @code{VALUE} attribute. Note that pointer arguments also frequently need the @code{VALUE} attribute.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment