RISC-V: Refactor Dynamic LMUL codes
[official-gcc.git] / gcc / testsuite / gfortran.dg / module_variable_3.f90
blob0dae6d5bdd5c3cab2d0cd2f7cff11432f76f795c
1 ! { dg-do compile }
2 ! { dg-additional-options "-fdump-tree-original" }
4 ! PR fortran/97927
6 ! Did ICE due to the in tree-nested.c due to {clobber}
9 module mpi2
10 interface
11 subroutine MPI_Allreduce(i)
12 implicit none
13 INTEGER, OPTIONAL, INTENT(OUT) :: i
14 end subroutine MPI_Allreduce
15 end interface
16 end module
18 module modmpi
19 implicit none
20 integer ierror ! module variable = context NAMESPACE_DECL
21 end module
23 subroutine exxengy
24 use modmpi
25 use mpi2, only: mpi_allreduce
26 implicit none
28 ! intent(out) implies: ierror = {clobber}
29 call mpi_allreduce(ierror)
31 contains
32 subroutine zrho2
33 return
34 end subroutine
35 end subroutine
37 ! { dg-final { scan-tree-dump "ierror = {CLOBBER};" "original" } }