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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [fmt_missing_period_3.f] - Blame information for rev 414

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
! { dg-options "-std=legacy" }
3
! PR27634 Missing period in format specifier. Test case derived from case given
4
! in PR.  Submitted by Jerry DeLisle  <jvdelisle@gcc.gnu.org>
5
      real          :: aval = 3.14
6
      character(6)  :: str = "xyz"
7
      character(12) :: input = "1234abcdef"
8
      character(8)  :: fmtstr = "(f4,a6)"
9
      aval = 0.0
10
      str = "xyz"
11
      read(input,fmtstr) aval, str
12
      if (aval.ne.1234.0) call abort()
13
      if (str.ne."abcdef") call abort()
14
      end
15
 

powered by: WebSVN 2.1.0

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