summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/wtruncate_fix.f
blob: 082c70ff766d4502b9b6f47051229eb8fbb8881c (plain)
1
2
3
4
5
6
7
8
9
10
11
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 }