coarray_41.f90: Add "-latomic" option if libatomic_available.
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_ptr_16.f90
blob904b550b5e9e235cfdc803f968c8c7d2168a6dee
1 ! { dg-do compile }
3 ! PR 39946: PROCEDURE statements: interface with RESULT variable
5 ! Original test case by Juergen Reuter <reuter@physik.uni-freiburg.de>
6 ! Modified by Janus Weil <janus@gcc.gnu.org>
8 procedure(prc_is_allowed), pointer :: fptr
10 interface
11 function prc_is_allowed (flv, hel, col) result (is_allowed)
12 logical :: is_allowed
13 integer, intent(in) :: flv, hel, col
14 end function prc_is_allowed
15 end interface
17 fptr => prc_is_allowed
19 end