Increase timeout factor for hppa*-*-* in gcc.dg/long_branch.c
[official-gcc.git] / gcc / testsuite / gfortran.dg / namelist_81.f90
blob2adac1b0b5377e5ee515f37c427fcd4228553685
1 ! { dg-do run }
2 ! PR56786 Error on embedded spaces
3 integer :: i(3)
4 namelist /nml/ i
6 i = -42
7 open(99,status='scratch')
8 write(99,'(a)') '&nml i(3 ) = 5 /'
9 rewind(99)
10 read(99,nml=nml)
11 close(99)
12 if (i(1)/=-42 .or. i(2)/=-42 .or. i(3)/=5) STOP 1
14 ! Shorten the file so the read hits EOF
16 open(99,status='scratch')
17 write(99,'(a)') '&nml i(3 ) = 5 '
18 rewind(99)
19 read(99,nml=nml, end=30)
20 STOP 2
21 ! Shorten some more
22 30 close(99)
23 open(99,status='scratch')
24 write(99,'(a)') '&nml i(3 ) ='
25 rewind(99)
26 read(99,nml=nml, end=40)
27 STOP 3
28 ! Shorten some more
29 40 close(99)
30 open(99,status='scratch')
31 write(99,'(a)') '&nml i(3 )'
32 rewind(99)
33 read(99,nml=nml, end=50)
34 STOP 4
35 ! Shorten some more
36 50 close(99)
37 open(99,status='scratch')
38 write(99,'(a)') '&nml i(3 '
39 rewind(99)
40 read(99,nml=nml, end=60)
41 STOP 5
42 60 close(99)
43 end