diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gfortran.dg/realloc_on_assign_24.f90')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gfortran.dg/realloc_on_assign_24.f90 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gfortran.dg/realloc_on_assign_24.f90 b/gcc-4.9/gcc/testsuite/gfortran.dg/realloc_on_assign_24.f90 new file mode 100644 index 000000000..6f88c2bf2 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gfortran.dg/realloc_on_assign_24.f90 @@ -0,0 +1,10 @@ +! { dg-do compile } +! PR 62142 - this used to segfault +! Original test case by Ondřej Čertík . +program test_segfault + implicit none + real, allocatable :: X(:) + allocate (x(1)) + x = 1. + X = floor(X) +end program |