URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 303 |
Rev 338 |
! PR fortran/16336 -- the two common blocks used to clash
|
! PR fortran/16336 -- the two common blocks used to clash
|
MODULE bar
|
MODULE bar
|
INTEGER :: I
|
INTEGER :: I
|
COMMON /X/I
|
COMMON /X/I
|
contains
|
contains
|
subroutine set_i()
|
subroutine set_i()
|
i = 5
|
i = 5
|
end subroutine set_i
|
end subroutine set_i
|
END MODULE bar
|
END MODULE bar
|
|
|
USE bar
|
USE bar
|
INTEGER :: J
|
INTEGER :: J
|
COMMON /X/J
|
COMMON /X/J
|
j = 1
|
j = 1
|
i = 2
|
i = 2
|
if (j.ne.i) call abort()
|
if (j.ne.i) call abort()
|
if (j.ne.2) call abort()
|
if (j.ne.2) call abort()
|
call set_i()
|
call set_i()
|
if (j.ne.5) call abort()
|
if (j.ne.5) call abort()
|
END
|
END
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.