Skip to content

Commit fcba7f4

Browse files
Updated flang/test/Semantics/call03.f90 with the new warning info
1 parent 411eb31 commit fcba7f4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

flang/test/Semantics/call03.f90

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,16 +362,28 @@ subroutine test15(assumedrank) ! C1539
362362
call valueassumedsize(c(::2)) ! ok
363363
call valueassumedsize(d(::2)) ! ok
364364
!ERROR: ASYNCHRONOUS or VOLATILE actual argument that is not simply contiguous may not be associated with a contiguous ASYNCHRONOUS or VOLATILE dummy argument 'x='
365+
!ERROR: Actual argument associated with VOLATILE dummy argument 'x=' is not definable [-Wundefinable-asynchronous-or-volatile-actual]
366+
!BECAUSE: Variable 'b(::2_8)' has array section
365367
call volatileassumedsize(b(::2))
366368
!ERROR: ASYNCHRONOUS or VOLATILE actual argument that is not simply contiguous may not be associated with a contiguous ASYNCHRONOUS or VOLATILE dummy argument 'x='
369+
!ERROR: Actual argument associated with VOLATILE dummy argument 'x=' is not definable [-Wundefinable-asynchronous-or-volatile-actual]
370+
!BECAUSE: Variable 'b(::2_8)' has array section
367371
call volatilecontiguous(b(::2))
368372
!ERROR: ASYNCHRONOUS or VOLATILE actual argument that is not simply contiguous may not be associated with a contiguous ASYNCHRONOUS or VOLATILE dummy argument 'x='
373+
!ERROR: Actual argument associated with VOLATILE dummy argument 'x=' is not definable [-Wundefinable-asynchronous-or-volatile-actual]
374+
!BECAUSE: Variable 'c(::2_8)' has array section
369375
call volatileassumedsize(c(::2))
370376
!ERROR: ASYNCHRONOUS or VOLATILE actual argument that is not simply contiguous may not be associated with a contiguous ASYNCHRONOUS or VOLATILE dummy argument 'x='
377+
!ERROR: Actual argument associated with VOLATILE dummy argument 'x=' is not definable [-Wundefinable-asynchronous-or-volatile-actual]
378+
!BECAUSE: Variable 'c(::2_8)' has array section
371379
call volatilecontiguous(c(::2))
372380
!ERROR: ASYNCHRONOUS or VOLATILE actual argument that is not simply contiguous may not be associated with a contiguous ASYNCHRONOUS or VOLATILE dummy argument 'x='
381+
!ERROR: Actual argument associated with VOLATILE dummy argument 'x=' is not definable [-Wundefinable-asynchronous-or-volatile-actual]
382+
!BECAUSE: Variable 'd(::2_8)' has array section
373383
call volatileassumedsize(d(::2))
374384
!ERROR: ASYNCHRONOUS or VOLATILE actual argument that is not simply contiguous may not be associated with a contiguous ASYNCHRONOUS or VOLATILE dummy argument 'x='
385+
!ERROR: Actual argument associated with VOLATILE dummy argument 'x=' is not definable [-Wundefinable-asynchronous-or-volatile-actual]
386+
!BECAUSE: Variable 'd(::2_8)' has array section
375387
call volatilecontiguous(d(::2))
376388
!ERROR: ASYNCHRONOUS or VOLATILE actual argument that is not simply contiguous may not be associated with a contiguous ASYNCHRONOUS or VOLATILE dummy argument 'x='
377389
call volatilecontiguous(assumedrank)

0 commit comments

Comments
 (0)