diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/initialization_26.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/initialization_26.f90 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/initialization_26.f90 b/gcc/testsuite/gfortran.dg/initialization_26.f90 new file mode 100644 index 000000000..4532216e1 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/initialization_26.f90 @@ -0,0 +1,9 @@ +! { dg-do compile } +! +! Verify that the outer do-loop counter 'j' is accepted as +! as end-expression of the inner loop. +! + + integer i, j + integer, parameter :: n = size( [( [(i*j,i=1,j)], j=1,2)] ) +end |