2009-10-05 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / reshape_3.f90
bloba9f44b414eb06ab78b564cb504e20cb74fe0cb31
1 ! { dg-do run }
2 ! { dg-options "-fbounds-check" }
3 program main
4 implicit none
5 integer, dimension(2,2) :: a4
6 integer(kind=1), dimension(2,2) :: a1
7 character(len=100) line
8 data a4 /1, 2, 3, 4/
9 a1 = a4
10 write (unit=line,fmt='(4I3)') reshape(a4,(/4/))
11 write (unit=line,fmt='(4I3)') reshape(a1,(/4/))
12 end program main