1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! Test that DEALLOCATE works
4 INTEGER, PARAMETER :: maxvalue
=1024
13 Type(t
),Allocatable
:: x(:)
14 Type(t
),Pointer :: y(:)
19 Integer, Pointer :: pi
32 !ERROR: An allocatable or pointer component reference must be applied to a scalar base
33 Deallocate(x
%p
, stat
=s
, errmsg
=e
)
34 Deallocate(x
, errmsg
=e
)
37 Deallocate(y
, stat
=s
, errmsg
=e
)
38 Deallocate(y
, errmsg
=e
)
41 Deallocate(z
, stat
=s
, errmsg
=e
)
42 Deallocate(z
, errmsg
=e
)
45 Deallocate(z
, y
, stat
=s
, errmsg
=e
)
46 Deallocate(z
, y
, errmsg
=e
)
47 Deallocate(z
, y
, stat
=s
)