re PR fortran/43899 (Wrong unused-variable warning with NAMELISTs)
2010-11-03 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/43899 * gfortran.dg/namelist_67.f90: New test. From-SVN: r166253
This commit is contained in:
parent
fc5f5bb770
commit
836dda671a
@ -1,3 +1,8 @@
|
||||
2010-11-03 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
|
||||
PR libgfortran/43899
|
||||
* gfortran.dg/namelist_67.f90: New test.
|
||||
|
||||
2010-11-03 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR tree-optimization/46009
|
||||
|
10
gcc/testsuite/gfortran.dg/namelist_67.f90
Normal file
10
gcc/testsuite/gfortran.dg/namelist_67.f90
Normal file
@ -0,0 +1,10 @@
|
||||
! { dg-do run }
|
||||
! { dg-options "-fbounds-check" }
|
||||
|
||||
character(35) :: nml_contents = "&NMLIST NML_STRING='123456789' /"
|
||||
character(4) :: nml_string
|
||||
namelist /nmlist/ nml_string
|
||||
nml_string = "abcd"
|
||||
read(nml_contents,nml=nmlist)
|
||||
end program
|
||||
! { dg-output "Fortran runtime warning: Namelist object 'nml_string' truncated on read." }
|
Loading…
Reference in New Issue
Block a user