OSDN Git Service

2010-07-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 25 Jul 2010 15:35:04 +0000 (15:35 +0000)
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 25 Jul 2010 15:35:04 +0000 (15:35 +0000)
PR fortran/42852
* gfortran.dg/wtruncate_fix.f: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162514 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 8f722ed..5771a06 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 }