diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2007-07-27 16:33:50 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2007-07-27 16:33:50 +0000 |
commit | 7aa34e7a72a84335eb06d5afef13c9e5e5b61f8e (patch) | |
tree | 0fd2c2d455259b8d58c9e70c7f4273cb6b92ca6d /gcc | |
parent | 4958f4ee0bf55dc699c84b2f65c8cb92e40c6fdf (diff) | |
download | gcc-7aa34e7a72a84335eb06d5afef13c9e5e5b61f8e.zip gcc-7aa34e7a72a84335eb06d5afef13c9e5e5b61f8e.tar.gz gcc-7aa34e7a72a84335eb06d5afef13c9e5e5b61f8e.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/private_type_7.f90 | 34 |
2 files changed, 39 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 863402c..cdfbcb8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gfortran.dg/private_type_7.f90 b/gcc/testsuite/gfortran.dg/private_type_7.f90 new file mode 100644 index 0000000..c449172 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/private_type_7.f90 @@ -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 |