diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/bounds_check_6.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/bounds_check_6.f90 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/bounds_check_6.f90 b/gcc/testsuite/gfortran.dg/bounds_check_6.f90 new file mode 100644 index 000000000..6535db760 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/bounds_check_6.f90 @@ -0,0 +1,8 @@ +! { dg-do run } +! { dg-options "-fbounds-check" } +! +! Testcase for PR30655, we used to issue a compile-time warning + integer i(12), j + j = -1 + i(0:j) = 42 + end |