diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/pr30391-1.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/pr30391-1.f90 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/pr30391-1.f90 b/gcc/testsuite/gfortran.dg/pr30391-1.f90 new file mode 100644 index 00000000000..28ca7542718 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/pr30391-1.f90 @@ -0,0 +1,10 @@ +! { dg-do compile } +! { dg-options "-O1" } +SUBROUTINE check_for_overlap (cell_length) + REAL, DIMENSION(1:3), INTENT(IN), OPTIONAL :: cell_length + REAL, DIMENSION(1:3) :: abc, box_length + + IF (PRESENT(cell_length)) THEN + box_length(1:3)=abc(1:3) + ENDIF +END SUBROUTINE check_for_overlap |