2 ! { dg-options "-fdump-tree-original" }
4 ! PR38033 - size(a) was not stabilized correctly and so the expression was
5 ! evaluated twice outside the loop and then within the scalarization loops.
7 ! Contributed by Thomas Bruel <tmbdev@gmail.com>
10 integer, parameter :: n
= 100
11 real, pointer :: a(:),temp(:) ! pointer or allocatable have the same effect
12 allocate(a(n
), temp(n
))
15 ! { dg-final { scan-tree-dump-times "MAX_EXPR\[^\n\t\]+ubound\[^\n\t\]+lbound" 1 "original" } }