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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [pr17706.f90] - Blame information for rev 193

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

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do run }
2
! PR17706
3
! this is a libgfortran test
4
! output value -0.00 is not standard compliant
5
! derived from NIST F77 test FM406, with extra bits added.
6
program pr17706
7
  implicit none
8
  character(len=10) :: s
9
  character(len=10), parameter :: x = "xxxxxxxxxx"
10
  real, parameter :: small = -0.0001
11
 
12
  s = x
13
  write (s, '(F4.1)') small
14
  ! The plus is optional.  We choose not to display it.
15
  if (s .ne. " 0.0") call abort
16
 
17
  s = x
18
  write (s, '(SS,F4.1)') small
19
  if (s .ne. " 0.0") call abort
20
 
21
  s = x
22
  write (s, '(SP,F4.1)') small
23
  if (s .ne. "+0.0") call abort
24
end program

powered by: WebSVN 2.1.0

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