annotate gcc/testsuite/gfortran.dg/move_alloc_5.f90 @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do run }
kono
parents:
diff changeset
2 !
kono
parents:
diff changeset
3 ! PR 48699: [4.6/4.7 Regression] [OOP] MOVE_ALLOC inside SELECT TYPE
kono
parents:
diff changeset
4 !
kono
parents:
diff changeset
5 ! Contributed by Salvatore Filippone <sfilippone@uniroma2.it>
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 program testmv1
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 type bar
kono
parents:
diff changeset
10 end type
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 type, extends(bar) :: bar2
kono
parents:
diff changeset
13 end type
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 class(bar), allocatable :: sm
kono
parents:
diff changeset
16 type(bar2), allocatable :: sm2
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 allocate (sm2)
kono
parents:
diff changeset
19 call move_alloc (sm2,sm)
kono
parents:
diff changeset
20
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
21 if (allocated(sm2)) STOP 1
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
22 if (.not. allocated(sm)) STOP 2
111
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 end program