2 ! { dg-options "-fdump-tree-original" }
4 ! Test the fix for PR66082. The original problem was with the first
7 ! Reported by Damian Rouson <damian@sourceryinstitute.org>
10 real, allocatable
:: bigarr
15 call foo_1d (1,[foo
]) ! wasy lost
16 call foo_1d (1,bar_1d()) ! Check that this is OK
19 subroutine foo_1d (n
,foo
)
23 function bar_1d () result (array
)
24 type(foo_t
) :: array(1)
25 allocate (array(1)%bigarr
)
28 ! { dg-final { scan-tree-dump-times "builtin_malloc" 3 "original" } }
29 ! { dg-final { scan-tree-dump-times "builtin_free" 4 "original" } }
30 ! { dg-final { scan-tree-dump-times "while \\(1\\)" 4 "original" } }