]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR fortran/42852 (gfortran -Wall warns about truncated lines when only a continuat...
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 25 Jul 2010 15:35:04 +0000 (15:35 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 25 Jul 2010 15:35:04 +0000 (15:35 +0000)
2010-07-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/42852
* gfortran.dg/wtruncate_fix.f: New test.

From-SVN: r162514

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/wtruncate_fix.f [new file with mode: 0644]

index 8f722ed7aa58842ee21cc254d7340eb2cca84406..5771a063137dae497a19d7501f5dce5d5cd7d188 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-25  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR fortran/42852
+       * gfortran.dg/wtruncate_fix.f: New test.
+
 2010-07-25  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR testsuite/45068
diff --git a/gcc/testsuite/gfortran.dg/wtruncate_fix.f b/gcc/testsuite/gfortran.dg/wtruncate_fix.f
new file mode 100644 (file)
index 0000000..082c70f
--- /dev/null
@@ -0,0 +1,12 @@
+c { dg-do compile }
+c { dg-options "-Wall" }
+c PR42852 -Wall warns about truncated lines when only a continuation character is truncated
+      print *, "Hello!"                                                  &   !xxxxx
+     & //   " World!"
+      print *, "Hello!"                                                  &   xxxxx
+     & //   " World!"
+      print *, "Hello!"                                                  //
+     & //   " World!"
+      end
+c { dg-warning "Line truncated" " " { target *-*-* } 6 }
+c { dg-warning "Line truncated" " " { target *-*-* } 8 }