URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [deallocate_alloc_opt_3.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }program aimplicit noneinteger ncharacter(len=70) e1character(len=30) e2integer, allocatable :: i(:)e1 = 'No error'allocate(i(4))deallocate(i, stat=n, errmsg=e1)if (trim(e1) /= 'No error') call aborte2 = 'No error'allocate(i(4))deallocate(i, stat=n, errmsg=e2)if (trim(e2) /= 'No error') call aborte1 = 'No error'deallocate(i, stat=n, errmsg=e1)if (trim(e1) /= 'Attempt to deallocate an unallocated object') call aborte2 = 'No error'deallocate(i, stat=n, errmsg=e2)if (trim(e2) /= 'Attempt to deallocate an unall') call abortend program a
