summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/module_parameter_array_refs_1.f90
blob: 592e2f3dd2a20af5507e5040edc356fed91e6b4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! { dg-do compile }
! Tests the fix for 26074, in which the array reference below would
! be determined not to be constant within modules.
!
! Contributed by Jonathan Dursi  <ljdursi@cita.utoronto.ca>
!
module foo

   integer, parameter :: len = 5
   integer :: arr(max(len,1))

end

! { dg-final { cleanup-modules "foo" } }