aarch64: Add vector floating point extend pattern [PR113880, PR113869]
[official-gcc.git] / gcc / testsuite / gfortran.dg / namelist_72.f
blob96cacf1afae55f24d3c98d9a494e8168aea627e5
1 ! { dg-do run }
3 ! PR fortran/49791
5 ! Contributed by Elliott Sales de Andrade
7 program namelist_test
9 dimension xpos(5000), ypos(5000)
10 namelist /geometry/ xpos, ypos
12 xpos = -huge(xpos)
13 ypos = -huge(ypos)
15 open(unit=4,file='geometry.in')
16 write(4,'(a)') '$geometry'
17 write(4,'(a)') ' xpos(1)= 0.00, 0.10, 0.20, 0.30, 0.40,'
18 write(4,'(a)') ' ypos(1)= 0.50, 0.60, 0.70, 0.80, 0.90,'
19 write(4,'(a)') '$end'
21 close(4)
23 open (unit=4,file='geometry.in',status='old',form='formatted')
24 read (4,geometry)
25 close(4, status='delete')
27 !print *, 'xpos', xpos(1:10), 'ypos', ypos(1:10)
29 if (any (xpos(1:5) /= [0.00, 0.10, 0.20, 0.30, 0.40]))STOP 1
30 if (any (ypos(1:5) /= [0.50, 0.60, 0.70, 0.80, 0.90]))STOP 2
31 if (any (xpos(6:) /= -huge(xpos))) STOP 3
32 if (any (ypos(6:) /= -huge(ypos))) STOP 4
33 end