aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/char_array_constructor_2.f90
blob: d6abc260caa4c0746f25224883ed4cc2aecbeb72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { dg-do compile }
! Tests the fix for PR30319, in which the use of the parameter 'aa' in
! the array constructor that initialises bb would cause an internal
! error in resolution.
!
! Contributed by Vivek Rao <vivekrao4@yahoo.com>
!
module foomod
  character (len=1), parameter :: aa = "z", bb(1) = (/aa/)
end module foomod
  use foomod
  print *, aa, bb
end