OSDN Git Service

2010-04-06 Tobias Burnus <burnus@net-b.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / char_array_constructor_2.f90
1 ! { dg-do compile }
2 ! Tests the fix for PR30319, in which the use of the parameter 'aa' in
3 ! the array constructor that initialises bb would cause an internal
4 ! error in resolution.
5 !
6 ! Contributed by Vivek Rao <vivekrao4@yahoo.com>
7 !
8 module foomod
9   character (len=1), parameter :: aa = "z", bb(1) = (/aa/)
10 end module foomod
11   use foomod
12   print *, aa, bb
13 end
14 ! { dg-final { cleanup-modules "foomod" } }