re PR fortran/78741 (ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1534)
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr83149_1.f90
blob3a8f5d55d9b776a28d7624a4b0d3374c671a3042
1 ! Compiled with pr83149.f90
2 ! { dg-do run }
3 ! { dg-options "-fno-whole-file" }
4 ! { dg-compile-aux-modules "pr83149.f90" }
5 ! { dg-additional-sources pr83149.f90 }
7 ! Contributed by Neil Carlson <neil.n.carlson@gmail.com>
9 subroutine sub(s)
10 use mod2
11 real :: s
12 s = sum(get())
13 end
15 use mod1
16 real :: s
17 ncells = 2
18 call sub (s)
19 if (int (s) .ne. ncells) stop 1
20 ncells = 10
21 call sub (s)
22 if (int (s) .ne. ncells) stop 2
23 end