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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
!
3
! PR fortran/18918
4
!
5
! Check whether registering coarrays works
6
!
7
module m
8
  integer :: a(1)[*] = 7
9
end module m
10
 
11
use m
12
if (any (a /= 7)) call abort()
13
a = 88
14
if (any (a /= 88)) call abort()
15
 
16
 block
17
   integer :: b[*] = 8494
18
   if (b /= 8494) call abort()
19
 end block
20
 
21
if (any (a /= 88)) call abort()
22
call test ()
23
end
24
 
25
subroutine test()
26
  real :: z[*] = sqrt(2.0)
27
  if (z /= sqrt(2.0)) call abort()
28
  call sub1()
29
contains
30
  subroutine sub1
31
    real :: r[4,*] = -1
32
    if (r /= -1) call abort
33
    r = 10
34
    if (r /= 10) call abort
35
  end subroutine sub1
36
 
37
  subroutine uncalled()
38
     integer :: not_refed[2:*] = 784
39
     if (not_refed /= 784) call abort()
40
  end subroutine uncalled
41
end subroutine test
42
 
43
! { 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.