view gcc/testsuite/gfortran.dg/runtime_warning_1.f90 @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

! Test runtime warnings using non-standard $ editing - PR20006.
!
! Contributor Francois-Xavier Coudert  <coudert@clipper.ens.fr>
!
! { dg-options "-pedantic" }
! { dg-do run }
!
     character(5) c
     open (42,status='scratch')
     write (42,'(A,$)') 'abc' ! { dg-warning ".*descriptor" }
     write (42,'(A)') 'de'
     rewind (42)
     read (42,'(A)') c
     close (42)
     if (c /= 'abcde') STOP 1
     end