9 integer, allocatable
:: i(:)
13 deallocate(i
, stat
=n
, errmsg
=e1
)
14 if (trim(e1
) /= 'No error') STOP 1
18 deallocate(i
, stat
=n
, errmsg
=e2
)
19 if (trim(e2
) /= 'No error') STOP 2
22 deallocate(i
, stat
=n
, errmsg
=e1
)
23 if (trim(e1
) /= 'Attempt to deallocate an unallocated object') STOP 3
26 deallocate(i
, stat
=n
, errmsg
=e2
)
27 if (trim(e2
) /= 'Attempt to deallocate an unall') STOP 4