2 ! { dg-shouldfail "runtime error" }
3 ! { dg-output "At line 15.*Attempt to DEALLOCATE unallocated 'ptr'" }
6 ! Check that locus is printed for DEALLOCATE errors.
10 INTEGER, POINTER :: ptr
11 INTEGER, ALLOCATABLE
:: arr(:)
13 ALLOCATE (ptr
, arr(5))