Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: gcc/gcc/testsuite/gfortran.dg/e_d_fmt.f90

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 ! { dg-do run } 1 ! { dg-do run }
2 ! { dg-options "-std=legacy" }
3 !
2 ! Verify that the D format uses 'D' as the exponent character. 4 ! Verify that the D format uses 'D' as the exponent character.
3 ! " " " E " " 'E' " " " " 5 ! " " " E " " 'E' " " " "
4 CHARACTER*10 c1, c2 6 CHARACTER*10 c1, c2
5 REAL(kind=8) r 7 REAL(kind=8) r
6 r = 1.0 8 r = 1.0
7 write(c1,"(e9.2)") r 9 write(c1,"(e9.2)") r
8 write(c2,"(d9.2)") r 10 write(c2,"(d9.2)") r
9 11
10 if (trim(adjustl(c1)) .ne. "0.10E+01") call abort() 12 if (trim(adjustl(c1)) .ne. "0.10E+01") call abort()
11 if (trim(adjustl(c2)) .ne. "0.10D+01") call abort() 13 if (trim(adjustl(c2)) .ne. "0.10D+01") call abort()
12 14
13 END 15 END
OLDNEW
« no previous file with comments | « gcc/gcc/testsuite/gfortran.dg/duplicate_type_2.f90 ('k') | gcc/gcc/testsuite/gfortran.dg/elemental_dependency_1.f90 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698