nvptx, libgfortran: Switch out of "minimal" mode
[official-gcc.git] / gcc / testsuite / gfortran.dg / binding_label_tests_33.f90
blobfdb9a887f60738c1f561d0eace4e01f1a8901ed0
1 ! { dg-do run }
2 ! PR 79485 - used to crash because the wrong routine was called.
3 module fmod1
5 contains
7 subroutine foo(i)
8 implicit none
10 integer, intent(inout) :: i
12 i=i+1
14 end subroutine foo
16 end module fmod1
18 module fmod2
19 use iso_c_binding
20 use fmod1, only : foo_first => foo
22 contains
24 subroutine foo(i) bind(c)
25 implicit none
27 integer, intent(inout) :: i
29 i=i+2
30 call foo_first(i)
32 end subroutine foo
34 end module fmod2
36 use fmod2
38 call foo(i)
39 end