Skip to content

Commit 42bab5b

Browse files
committed
add another test case
1 parent f44df10 commit 42bab5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flang/test/Semantics/call45.f90

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ program call45
77
call sub(v([1,2,2,3,3,3,4,4,4,4]))
88
!PORTABILITY: The array section 'v(21_8:30_8:1_8)' should not be associated with dummy argument 'v=' with VOLATILE attribute, unless the dummy is assumed-shape or assumed-rank [-Wportability]
99
call sub(v(21:30))
10+
!PORTABILITY: The array section 'v(21_8:40_8:2_8)' should not be associated with dummy argument 'v=' with VOLATILE attribute, unless the dummy is assumed-shape or assumed-rank [-Wportability]
11+
call sub(v(21:40:2))
1012
call sub2(v(21:40:2))
1113
call sub4(p)
1214
print *, v

0 commit comments

Comments
 (0)