This test should have been added in revision 218407.
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Fri, 5 Dec 2014 00:01:35 +0000 (00:01 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Fri, 5 Dec 2014 00:01:35 +0000 (00:01 +0000)
gcc/testsuite/

2014-12-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>

* gfortran.dg/line_length_5.f90: New test.

From-SVN: r218410

gcc/testsuite/gfortran.dg/line_length_5.f90 [new file with mode: 0644]

diff --git a/gcc/testsuite/gfortran.dg/line_length_5.f90 b/gcc/testsuite/gfortran.dg/line_length_5.f90
new file mode 100644 (file)
index 0000000..b9c2946
--- /dev/null
@@ -0,0 +1,6 @@
+! { dg-do compile }
+! { dg-options "-Wline-truncation" }
+print *, 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+end 
+! { dg-warning "Line truncated" " " { target *-*-* } 3 }
+! { dg-error "Unterminated character constant" " " { target *-*-* } 3 }