diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2008-04-20 21:11:22 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2008-04-20 21:11:22 +0000 |
commit | f449022dca52d61f2f57cb40e6fc4b9b69049314 (patch) | |
tree | ee8359090ec8ff39b18cf812acb30a1a1f72b803 /gcc/testsuite/gfortran.dg | |
parent | ef5f59f6395ae2db6c02c8bed4dad9a3dd8c563d (diff) | |
download | gcc-f449022dca52d61f2f57cb40e6fc4b9b69049314.zip gcc-f449022dca52d61f2f57cb40e6fc4b9b69049314.tar.gz gcc-f449022dca52d61f2f57cb40e6fc4b9b69049314.tar.bz2 |
re PR fortran/35882 (Miscounted continuation lines when interspersed with data)
2008-04-20 Jerry DeLisle <jvdelisle@gcc.gnu.org>
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
Diffstat (limited to 'gcc/testsuite/gfortran.dg')
-rw-r--r-- | gcc/testsuite/gfortran.dg/continuation_3.f90 | 4 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/continuation_5.f | 8 |
2 files changed, 12 insertions, 0 deletions
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 |