Add test case for PR 92442.
2019-11-23 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/92442 * gfortran.dg/bounds_check_21.f90: New test. From-SVN: r278647
This commit is contained in:
parent
1e83bd7003
commit
5cebf73068
@ -1,3 +1,8 @@
|
||||
2019-11-23 Thomas Koenig <tkoenig@gcc.gnu.org>
|
||||
|
||||
PR fortran/92442
|
||||
* gfortran.dg/bounds_check_21.f90: New test.
|
||||
|
||||
2019-11-23 Jan Hubicka <hubicka@ucw.cz>
|
||||
|
||||
* g++.dg/tree-ssa/pr53844.C: Drop -O2 from param name.
|
||||
|
12
gcc/testsuite/gfortran.dg/bounds_check_21.f90
Normal file
12
gcc/testsuite/gfortran.dg/bounds_check_21.f90
Normal file
@ -0,0 +1,12 @@
|
||||
! { dg-do compile }
|
||||
! { dg-options "-Warray-bounds -O2" }
|
||||
! PR 92422 - this complained about an array subscript out of bounds.
|
||||
|
||||
PROGRAM character_warning
|
||||
|
||||
CHARACTER(len=16) :: word
|
||||
|
||||
word = 'hi'
|
||||
WRITE(*,*) word
|
||||
|
||||
END PROGRAM character_warning
|
Loading…
Reference in New Issue
Block a user