diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/bound_simplification_2.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/bound_simplification_2.f90 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/bound_simplification_2.f90 b/gcc/testsuite/gfortran.dg/bound_simplification_2.f90 new file mode 100644 index 000000000..05477776f --- /dev/null +++ b/gcc/testsuite/gfortran.dg/bound_simplification_2.f90 @@ -0,0 +1,9 @@ +! { dg-do compile } +! PR 38914 - this used to give an ICE due to missing +! simplification. +module foo + INTEGER, PARAMETER, DIMENSION(0:20,4) :: IP_ARRAY2_4_S = 0 + INTEGER, PARAMETER, DIMENSION(2) :: IP_ARRAY1_32_S = & + & (/ LBOUND(IP_ARRAY2_4_S(5:10,2:3))/) +END module foo +! { dg-final { cleanup-modules "foo" } } |