summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/wtruncate.f
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.dg/wtruncate.f')
-rw-r--r--gcc/testsuite/gfortran.dg/wtruncate.f10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/wtruncate.f b/gcc/testsuite/gfortran.dg/wtruncate.f
new file mode 100644
index 000000000..b7cac5d3c
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/wtruncate.f
@@ -0,0 +1,10 @@
+! { dg-do compile }
+! { dg-options "-Wall" }
+
+! This long comment line should not trigger a line-truncation warning with -Wall
+
+ PROGRAM foo
+ WRITE (*,*) "Test" ! Neither this comment which exceeds the 72 character limit, too
+ WRITE (*,*) "This exactly 72 character long soruce line not, too."
+ END
+