URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 302 |
Rev 384 |
! { dg-do compile }
|
! { dg-do compile }
|
! { dg-options "-std=legacy" }
|
! { dg-options "-std=legacy" }
|
!
|
!
|
! PR fortran/25062
|
! PR fortran/25062
|
!
|
!
|
! F2003: 16.2.1
|
! F2003: 16.2.1
|
! "A name that identifies a common block in a scoping unit shall not be used
|
! "A name that identifies a common block in a scoping unit shall not be used
|
! to identify a constant or an intrinsic procedure in that scoping unit."
|
! to identify a constant or an intrinsic procedure in that scoping unit."
|
!
|
!
|
subroutine try
|
subroutine try
|
implicit none
|
implicit none
|
COMMON /s/ J
|
COMMON /s/ J
|
COMMON /bar/ I
|
COMMON /bar/ I
|
INTEGER I, J
|
INTEGER I, J
|
real s, x
|
real s, x
|
s(x)=sin(x)
|
s(x)=sin(x)
|
print *, s(5.0)
|
print *, s(5.0)
|
call bar()
|
call bar()
|
contains
|
contains
|
subroutine bar
|
subroutine bar
|
print *, 'Hello world'
|
print *, 'Hello world'
|
end subroutine bar
|
end subroutine bar
|
|
|
end subroutine try
|
end subroutine try
|
|
|
program test
|
program test
|
implicit none
|
implicit none
|
COMMON /abs/ J ! { dg-error "is also an intrinsic procedure" }
|
COMMON /abs/ J ! { dg-error "is also an intrinsic procedure" }
|
intrinsic :: abs
|
intrinsic :: abs
|
INTEGER J
|
INTEGER J
|
external try
|
external try
|
call try
|
call try
|
end program test
|
end program test
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.