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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! PR fortran/37504
3
!
4
module m
5
  implicit none
6
  integer, pointer, protected :: protected_pointer
7
  integer, target,  protected :: protected_target
8
end module m
9
 
10
program p
11
  use m
12
  implicit none
13
  integer, pointer :: unprotected_pointer
14
  ! The next two lines should be rejected; see PR 37513 why
15
  ! we get such a strange error message.
16
  protected_pointer => unprotected_pointer ! { dg-error "pointer association context" }
17
  protected_pointer =  unprotected_pointer ! OK
18
  unprotected_pointer => protected_target  ! { dg-error "target has PROTECTED attribute" }
19
  unprotected_pointer => protected_pointer ! OK
20
end program p
21
 
22
! { dg-final { cleanup-modules "m" } }

powered by: WebSVN 2.1.0

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