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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [fmt_white.f] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do run }
2
! PR24268 Test case derived from example given by Iwan Kawrakow
3
! Embedded spaces in format strings should be ignored.
4
! Prepared by Jerry DeLisle  <jvdelisle@gcc.gnu.org>
5
      program pr24268
6
      real x
7
      character*13 line
8
      line = "12.34"
9
      read(line,*) x
10
      write(line,10) x
11
 10                                                            format(g1
12
     *      1.4)
13
      if (line.ne."  12.34") call abort()
14
      line = ""
15
      write(line,20) x
16
 20   format(t r 2 , g 1 1 . 4)
17
      if (line.ne."    12.34") call abort()
18
      end

powered by: WebSVN 2.1.0

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