mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-30 23:11:09 +08:00
re PR fortran/32760 (Error defining subroutine named PRINT)
2007-07-27 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/32760 * gfortran.dg/private_type_7.f90: New test. From-SVN: r126982
This commit is contained in:
parent
4958f4ee0b
commit
7aa34e7a72
@ -1,3 +1,8 @@
|
||||
2007-07-27 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
|
||||
PR fortran/32760
|
||||
* gfortran.dg/private_type_7.f90: New test.
|
||||
|
||||
2007-07-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
|
||||
|
||||
PR fortran/32035
|
||||
|
34
gcc/testsuite/gfortran.dg/private_type_7.f90
Normal file
34
gcc/testsuite/gfortran.dg/private_type_7.f90
Normal file
@ -0,0 +1,34 @@
|
||||
! { dg-do compile }
|
||||
! PR32760 Error defining subroutine named PRINT
|
||||
! Test case derived from original PR.
|
||||
|
||||
module gfcbug68
|
||||
implicit none
|
||||
private :: write
|
||||
|
||||
contains
|
||||
|
||||
function foo (i)
|
||||
integer, intent(in) :: i
|
||||
integer foo
|
||||
|
||||
write (*,*) i
|
||||
call write(i)
|
||||
foo = i
|
||||
end function foo
|
||||
|
||||
subroutine write (m)
|
||||
integer, intent(in) :: m
|
||||
print *, m*m*m
|
||||
end subroutine write
|
||||
|
||||
end module gfcbug68
|
||||
|
||||
program testit
|
||||
use gfcbug68
|
||||
integer :: i = 27
|
||||
integer :: k
|
||||
|
||||
k = foo(i)
|
||||
print *, "in the main:", k
|
||||
end program testit
|
Loading…
x
Reference in New Issue
Block a user