9 character(len
=70), allocatable
:: error(:)
11 integer, allocatable
:: i(:)
14 integer, allocatable
:: c(:), d(:)
19 deallocate(i
, stat
=x
) ! { dg-error "must be a scalar INTEGER" }
20 deallocate(i
, stat
=j
, stat
=k
) ! { dg-error "Redundant STAT" }
22 deallocate(i
)) ! { dg-error "Syntax error in DEALLOCATE" }
23 deallocate(i
, errmsg
=err
, errmsg
=err
) ! { dg-error "Redundant ERRMSG" }
24 deallocate(i
, errmsg
=err
) ! { dg-warning "useless without a STAT" }
25 deallocate(i
, stat
=j
, errmsg
=x
) ! { dg-error "shall be a scalar default CHARACTER" }
27 deallocate(err
) ! { dg-error "nonprocedure pointer nor an allocatable" }
29 deallocate(error
,stat
=j
,errmsg
=error(1)) ! { dg-error "shall not be DEALLOCATEd within" }
30 deallocate(i
, stat
= i(1)) ! { dg-error "shall not be DEALLOCATEd within" }
32 deallocate(n
) ! { dg-error "must be ALLOCATABLE or a POINTER" }
34 deallocate(i
, i
) ! { dg-error "Allocate-object at" }
36 ! These should not fail the check for duplicate alloc-objects.
37 deallocate(f(1)%c
, f(2)%d
)