2 ! { dg-options "-std=f2008 -fall-intrinsics -fdump-tree-original" }
4 ! More sophisticated BLOCK runtime checks for correct initialization/clean-up.
14 IF (SIZE (arr) /= 5) CALL abort ()
17 IF (SIZE (arr) /= 10) CALL abort ()
19 IF (SIZE (arr) /= 5) CALL abort ()
23 INTEGER, ALLOCATABLE :: alloc_arr(:)
24 IF (ALLOCATED (alloc_arr)) CALL abort ()
25 ALLOCATE (alloc_arr(n))
26 IF (SIZE (alloc_arr) /= 5) CALL abort ()
27 ! Should be free'ed here (but at least somewhere), this is checked
32 CHARACTER(LEN=n) :: str
33 IF (LEN (str) /= 5) CALL abort ()
35 IF (str /= "12345") CALL abort ()
38 ! { dg-final { scan-tree-dump-times "free \\(\\(void \\*\\) alloc_arr\\.data" 1 "original" } }
39 ! { dg-final { cleanup-tree-dump "original" } }