nvptx, libgfortran: Switch out of "minimal" mode
[official-gcc.git] / gcc / testsuite / gfortran.dg / module_procedure_3.f90
blob50a83d9e5b1dfcc1c814e3267a84b715ac37781e
1 ! { dg-do run }
3 ! PR fortran/94348
5 ! Contributed by Damian Rouson
7 module foo_module
8 implicit none
10 interface
11 module function foo() result(bar)
12 implicit none
13 integer bar
14 end function
15 end interface
17 contains
18 module procedure foo
19 bar = 5
20 end procedure
21 end module
23 program main
24 use foo_module
25 implicit none
26 if (foo() /= 5) stop 1
27 end program main