aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/testsuite/gfortran.dg/runtime_warning_1.f90
blob: 2894136a8b50aa66202c75122df6fed5c08ee6f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
! 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') call abort ()
     end