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_g0_4.f08] - Blame information for rev 302

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do compile }
2
! { dg-options "-std=f2008" }
3
! PR36725 Compile time error for g0 edit descriptor
4
character(30) :: line
5
write(line, '(g0.3)') 0.1
6
if (line.ne."      1.000E-01") call abort
7
write(line, '(g0.9)') 1.0
8
if (line.ne."1.000000000E+00") call abort
9
write(line, '(g0.5)') 29.23
10
if (line.ne."    2.92300E+01") call abort
11
write(line, '(g0.8)') -28.4
12
if (line.ne."-2.83999996E+01") call abort
13
write(line, '(g0.8)') -0.0001
14
if (line.ne."-9.99999975E-05") call abort
15
end

powered by: WebSVN 2.1.0

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