OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [der_io_1.f90] - Blame information for rev 708

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! PR 16404 Nr. 8
3
! IO of derived types containing pointers is not allowed
4
program der_io_1
5
  type t
6
    integer, pointer :: p
7
  end type
8
  integer, target :: i
9
  type (t) v
10
  character(4) :: s
11
 
12
  v%p => i
13
  i = 42
14
  write (unit=s, fmt='(I2)') v ! { dg-error "POINTER components" "" }
15
  if (s .ne. '42') call abort ()
16
end program
17
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.