2007-05-28 Tobias Burnus <burnus@net-b.de>
PR fortran/32124
* gfortran.dg/allocate_stat_1.f90: New.
From-SVN: r125148
+2007-05-28 Tobias Burnus <burnus@net-b.de>
+
+ PR fortran/32124
+ * gfortran.dg/allocate_stat_1.f90: New.
+
2007-05-28 Brooks Moses <brooks.moses@codesourcery.com>
PR fortran/31972
--- /dev/null
+! { dg-do run }
+! Check whether uppon failure no run-time error is issued.
+! PR fortran/32124
+!
+program mem
+ implicit none
+ real(8), allocatable :: A(:,:,:,:)
+ integer :: status
+
+ status = 0
+ allocate(A(huge(0),huge(0),huge(0),huge(0)),stat=status) ! this should fail
+ if(status == 0) call abort()
+
+ status = 0
+ deallocate(A,stat=status)
+ if(status == 0) call abort()
+end program mem