2014-08-15 Thomas Koenig <tkoenig@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / realloc_on_assign_24.f90
blob6f88c2bf27caed18a4fd180c5af3fe87fd8d6bf8
1 ! { dg-do compile }
2 ! PR 62142 - this used to segfault
3 ! Original test case by Ondřej Čertík .
4 program test_segfault
5 implicit none
6 real, allocatable :: X(:)
7 allocate (x(1))
8 x = 1.
9 X = floor(X)
10 end program