aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/oldstyle_4.f90
blob: d40abeb61d9c051c30353c073e992e177f174958 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { dg-do compile }
! { dg-options "-std=f95" }
!
! PR fortran/52101
!
! Contributed by John Harper
!
program foo
   character*10 s    ! { dg-warning "Obsolescent feature: Old-style character length" }
   character    t*10 ! Still okay
   s = 'foo'
   t = 'bar'
end program foo