Skip to content

Commit bec4c18

Browse files
Unit test
1 parent 6ed9505 commit bec4c18

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

flang/test/Semantics/resolve55.f90

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,23 @@ subroutine s8(arg)
9494
do concurrent(i=1:5) local(arg)
9595
end do
9696
end subroutine s8
97+
98+
subroutine s9()
99+
type l3
100+
integer, allocatable :: a
101+
end type
102+
type l2
103+
type(l3) :: l2_3
104+
end type
105+
type l1
106+
type(l2) :: l1_2
107+
end type
108+
type(l1) :: v
109+
integer sum
110+
111+
sum = 0
112+
!ERROR: Derived type variable 'v' with ultimate ALLOCATABLE component not allowed in a LOCAL_INIT locality-spec
113+
do concurrent (i = 1:10) local_init(v)
114+
sum = sum + i
115+
end do
116+
end subroutine s9

0 commit comments

Comments
 (0)