URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
! { dg-do compile }
|
! { dg-do compile }
|
! Tests fix for PR25070; was no error for actual and assumed shape
|
! Tests fix for PR25070; was no error for actual and assumed shape
|
! dummy ranks not matching.
|
! dummy ranks not matching.
|
! Contributed by Joost VandeVondele
|
! Contributed by Joost VandeVondele
|
|
|
module addon
|
module addon
|
interface extra
|
interface extra
|
function foo (y)
|
function foo (y)
|
integer :: foo (2), y (:)
|
integer :: foo (2), y (:)
|
end function foo
|
end function foo
|
end interface extra
|
end interface extra
|
end module addon
|
end module addon
|
|
|
use addon
|
use addon
|
INTEGER :: I(2,2)
|
INTEGER :: I(2,2)
|
I=RESHAPE((/1,2,3,4/),(/2,2/))
|
I=RESHAPE((/1,2,3,4/),(/2,2/))
|
CALL TST(I) ! { dg-error "Type/rank mismatch in argument" }
|
CALL TST(I) ! { dg-error "Type/rank mismatch in argument" }
|
i = foo (i) ! { dg-error "Type/rank mismatch|Incompatible ranks" }
|
i = foo (i) ! { dg-error "Type/rank mismatch|Incompatible ranks" }
|
CONTAINS
|
CONTAINS
|
SUBROUTINE TST(I)
|
SUBROUTINE TST(I)
|
INTEGER :: I(:)
|
INTEGER :: I(:)
|
write(6,*) I
|
write(6,*) I
|
END SUBROUTINE TST
|
END SUBROUTINE TST
|
END
|
END
|
|
|
! { dg-final { cleanup-modules "addon" } }
|
! { dg-final { cleanup-modules "addon" } }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.