OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [fmt_error_10.f] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
! { dg-options "-std=legacy" }
3
! PR38439 I/O PD edit descriptor inconsistency
4
! Test case prepared by Jerry DeLisle <jvdelisle@gcc.gnu.org>
5
      character(len=25) :: str
6
      character(len=132) :: msg, line
7
      str = '(1pd24.15e6)'
8
      line = "initial string"
9
      x = 555.25
10
 
11
      write (line,str,iostat=istat, iomsg=msg) 1.0d0, 1.234
12
      if (istat.ne.0) call abort
13
      if (line.ne."   1.000000000000000D+001.E+00") call abort
14
 
15
      write (line,'(1pd24.15e6)',iostat=istat, iomsg=msg) 1.0d0, 1.234 ! { dg-warning "Period required" }
16
      if (istat.ne.0) call abort
17
      if (line.ne."   1.000000000000000D+001.E+00") call abort
18
 
19
      str = '(1pd0.15)'
20
      write (line,str,iostat=istat, iomsg=msg) 1.0d0
21
      if (istat.ne.5006 .or. msg(1:15).ne."Positive width ") call abort
22
      read (*,str,iostat=istat, iomsg=msg) x
23
      if (istat.ne.5006 .or. msg(1:15).ne."Positive width ") call abort
24
      if (x.ne.555.25) call abort
25
 
26
      write (line,'(1pd24.15e11.3)') 1.0d0, 1.234
27
      if (line.ne."   1.000000000000000D+00  1.234E+00") call abort
28
 
29
      end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.