aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/der_io_4.f90
blob: cfa1bca66873f3245014324d9466ab98697ec737 (plain)
1
2
3
4
5
6
7
8
9
! { dg-do compile }
! PR41859 ICE on invalid expression involving DT with pointer components in I/O.
! The parens around p below are significant.
  TYPE :: ptype
    character, pointer, dimension(:) :: x => null()
  END TYPE
  TYPE(ptype) :: p
  print *, ((((p))))       ! { dg-error "Data transfer element" }
end