From f449022dca52d61f2f57cb40e6fc4b9b69049314 Mon Sep 17 00:00:00 2001 From: Jerry DeLisle Date: Sun, 20 Apr 2008 21:11:22 +0000 Subject: re PR fortran/35882 (Miscounted continuation lines when interspersed with data) 2008-04-20 Jerry DeLisle PR fortran/35882 * scanner.c (skip_fixed_comments): Update continue_line when comment is detected. (gfc_next_char_literal): Likewise. PR fortran/35882 * gfortran.dg/continuation_5.f: Add some comment lines. * gfortran.dg/continuation_3.f90: Add some comment lines. From-SVN: r134493 --- gcc/testsuite/gfortran.dg/continuation_3.f90 | 4 ++++ gcc/testsuite/gfortran.dg/continuation_5.f | 8 ++++++++ 2 files changed, 12 insertions(+) (limited to 'gcc/testsuite/gfortran.dg') diff --git a/gcc/testsuite/gfortran.dg/continuation_3.f90 b/gcc/testsuite/gfortran.dg/continuation_3.f90 index 238f8cc..169f06f 100644 --- a/gcc/testsuite/gfortran.dg/continuation_3.f90 +++ b/gcc/testsuite/gfortran.dg/continuation_3.f90 @@ -72,8 +72,12 @@ print *, & "7" // & ! 27 "8" // & ! 28 "9" // & ! 29 +! + ! "0" // & ! 30 "1" // & ! 31 +! +! "2" // & ! 32 "3" // & ! 33 "4" // & ! 34 diff --git a/gcc/testsuite/gfortran.dg/continuation_5.f b/gcc/testsuite/gfortran.dg/continuation_5.f index 15e0607..aeb2403 100644 --- a/gcc/testsuite/gfortran.dg/continuation_5.f +++ b/gcc/testsuite/gfortran.dg/continuation_5.f @@ -32,11 +32,19 @@ c "7" // ! 7 c "8" // ! 8 c "9" // ! 9 +! +c +* +C c "0" // ! 10 c "1" // ! 11 c "2" // ! 12 c "3" // ! 13 c "4" // ! 14 +c + + ! + ! c "5" // ! 15 c "6" // ! 16 c "7" // ! 17 -- cgit v1.1