annotate gcc/testsuite/gfortran.dg/internal_pack_5.f90 @ 132:d34655255c78

update gcc-8.2
author mir3636
date Thu, 25 Oct 2018 10:21:07 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 ! { dg-options "-fdump-tree-original" }
kono
parents:
diff changeset
3 !
kono
parents:
diff changeset
4 ! PR fortran/36909
kono
parents:
diff changeset
5 !
kono
parents:
diff changeset
6 ! Check that no unneeded internal_unpack is
kono
parents:
diff changeset
7 ! called (INTENT(IN)!).
kono
parents:
diff changeset
8 !
kono
parents:
diff changeset
9 program test
kono
parents:
diff changeset
10 implicit none
kono
parents:
diff changeset
11 integer :: a(3,3)
kono
parents:
diff changeset
12 call foo(a(1,:))
kono
parents:
diff changeset
13 contains
kono
parents:
diff changeset
14 subroutine foo(x)
kono
parents:
diff changeset
15 integer,intent(in) :: x(3)
kono
parents:
diff changeset
16 end subroutine foo
kono
parents:
diff changeset
17 end program test
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 ! { dg-final { scan-tree-dump-times "_gfortran_internal_pack" 1 "original" } }
kono
parents:
diff changeset
20 ! { dg-final { scan-tree-dump-times "_gfortran_internal_unpack" 0 "original" } }