2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr65429.f90
blob505413c0b49e32fd275244c69a03db0af68665bb
1 ! { dg-do run }
2 ! PR fortran/65429
3 program foo
5 implicit none
7 character(*), parameter :: s(*) = [ character(5) :: 'abcde', 'fghij' ]
8 character(*), parameter :: t(*) = [ character(31) :: ]
9 character(*), parameter :: u(*) = [ 'qwerty', 'asdfgh', 'zxcvbn']
10 character(*), parameter :: v(*) = ['','']
12 if ((size(s) /= 2).or.(len(s)/=5)) call abort
13 if ((size(t) /= 0).or.(len(t)/=31)) call abort
14 if ((size(u) /= 3).or.(len(u)/=6)) call abort
15 if ((size(v) /= 2).or.(len(v)/=0)) call abort
16 if ((s(1)/='abcde').or.(s(2)/='fghij')) call abort
17 if ((u(1)/='qwerty').or.(u(2)/='asdfgh').or.(u(3)/='zxcvbn')) call abort
19 end program foo