diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/intrinsic_ifunction_2.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/intrinsic_ifunction_2.f90 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/intrinsic_ifunction_2.f90 b/gcc/testsuite/gfortran.dg/intrinsic_ifunction_2.f90 new file mode 100644 index 00000000000..1014cfff385 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/intrinsic_ifunction_2.f90 @@ -0,0 +1,8 @@ +! { dg-do run } +! PR 48066 - this used to segfault. +program p + real(8) :: empty(0, 3), square(0) + logical :: lempty(0, 3), lsquare(0) + square = sum(empty * empty, 2) + lsquare = any(lempty .and. lempty, 2) +end |