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