summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.fortran-torture/execute/equiv_3.f90
blob: 75103e200fb30f7df7f79076ce8d851b9e58737d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
      subroutine test1
      type t
      sequence
      character(8) c
      end type t
      type(t) :: tc, td
      equivalence (tc, td)
      tc%c='abcdefgh'
      if (tc%c.ne.'abcdefgh'.or.td%c(1:1).ne.'a') call abort
      end subroutine test1
      program main
      call test1
      end program main