c++: constrained lambda error-recovery [PR108972]
[official-gcc.git] / gcc / testsuite / gfortran.dg / fmt_bz_bn.f
blob35f177897184b67aa23f146ed25a07acb5e1ef8e
1 c { dg-do run }
2 c PR38097 I/O with blanks in exponent fails; BN edit descriptor
3 c Test case derived from reporter.
4 character(11) :: a = ' 2. 3 e+ 3'
5 character(11) :: b = ' 2.003 e+ 3'
6 character(11) :: c = ' 2.002 e+1 '
7 real :: f
9 f = 0.0
10 read (a,'(BZ,E11.0)') f
11 if (f .ne. 2003.0) STOP 1
12 f = 0.0
13 read (a,'(BN,E11.0)') f
14 if (f .ne. 2300.0) STOP 2
15 f = 0.0
16 read (b,'(BN,E11.0)') f
17 if (f .ne. 2003.0) STOP 3
18 f = 0.0
19 read (c,'(E11.0)') f
20 if (f .ne. 20.020) STOP 4
21 f = 0.0
22 read (c,'(BZ,E11.0)') f
23 if (f .ne. 2.002e10) STOP 5
25 end
26 c end of program