view gcc/testsuite/gfortran.dg/wtruncate_fix.f @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

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 }