2 ! { dg-options "-fdump-tree-original" }
4 ! Test the fix for PR43072, in which unnecessary calls to
5 ! internal PACK/UNPACK were being generated.
7 ! Contributed by Joost VandeVondele <jv244@cam.ac.uk>
11 REAL, PARAMETER :: c(2)=(/(i
,i
=1,2)/)
18 r
=S2((/(real(i
),i
=1,2)/)) ! See comment #1 of the PR
25 r
=r
+S2((/(real(i
),i
=1,2)/)) ! See comment #1 of the PR
29 REAL, INTENT(IN
) :: c(2)
33 ! { dg-final { cleanup-modules "M1" } }
34 ! { dg-final { scan-tree-dump-times "pack" 0 "original" } }
35 ! { dg-final { cleanup-tree-dump "original" } }