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

Side by Side Diff: gcc/gcc/testsuite/gfortran.dg/pr19467.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
« no previous file with comments | « gcc/gcc/testsuite/gfortran.dg/pr18210.f90 ('k') | gcc/gcc/testsuite/gfortran.dg/pr19657.f » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ! { dg-do run { target fd_truncate } } 1 ! { dg-do run }
2 ! pr 19467 2 ! pr 19467
3 ! test namelist with character arrays 3 ! test namelist with character arrays
4 ! Based on example provided by paulthomas2@wanadoo.fr 4 ! Based on example provided by paulthomas2@wanadoo.fr
5 5
6 program pr19467 6 program pr19467
7 implicit none 7 implicit none
8 integer :: ier 8 integer :: ier
9 character(len=2) :: ch(2) 9 character(len=2) :: ch(2)
10 character(len=2) :: dh(2)=(/"aa","bb"/) 10 character(len=2) :: dh(2)=(/"aa","bb"/)
11 namelist /a/ ch 11 namelist /a/ ch
12 open (10, status = "scratch") 12 open (10, status = "scratch")
13 write (10, *) "&A ch = 'aa' , 'bb' /" 13 write (10, *) "&A ch = 'aa' , 'bb' /"
14 rewind (10) 14 rewind (10)
15 READ (10,nml=a, iostat = ier) 15 READ (10,nml=a, iostat = ier)
16 close (10) 16 close (10)
17 if ((ier /= 0) .or. (any (ch /= dh))) call abort () 17 if ((ier /= 0) .or. (any (ch /= dh))) call abort ()
18 end program pr19467 18 end program pr19467
OLDNEW
« no previous file with comments | « gcc/gcc/testsuite/gfortran.dg/pr18210.f90 ('k') | gcc/gcc/testsuite/gfortran.dg/pr19657.f » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698