2 ! { dg-options "-fdump-tree-original" }
3 ! { dg-require-visibility "" }
5 ! Test the fix for PR43072, in which unnecessary calls to
6 ! internal PACK/UNPACK were being generated.
8 ! Contributed by Joost VandeVondele <jv244@cam.ac.uk>
12 REAL, PARAMETER :: c(2)=(/(i
,i
=1,2)/)
19 r
=S2((/(real(i
),i
=1,2)/)) ! See comment #1 of the PR
26 r
=r
+S2((/(real(i
),i
=1,2)/)) ! See comment #1 of the PR
30 REAL, INTENT(IN
) :: c(2)
34 ! { dg-final { scan-tree-dump-times "pack" 0 "original" } }