1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! Test 15.5.2.8 coarray dummy arguments
7 real, volatile :: c2
[*]
15 real, volatile :: x
[*]
18 real, contiguous
:: x(:)[*]
24 subroutine test(x
,c3
,c4
)
27 real, intent(in
) :: c3(:)[*]
28 real, contiguous
, intent(in
) :: c4(:)[*]
33 !ERROR: Actual argument associated with coarray dummy argument 'x=' must be a coarray
35 !ERROR: VOLATILE coarray may not be associated with non-VOLATILE coarray dummy argument 'x='
37 !ERROR: non-VOLATILE coarray may not be associated with VOLATILE coarray dummy argument 'x='
39 !ERROR: Actual argument associated with a CONTIGUOUS coarray dummy argument 'x=' must be simply contiguous
41 !ERROR: Actual argument associated with a CONTIGUOUS coarray dummy argument 'x=' must be simply contiguous
43 !ERROR: Actual argument associated with coarray dummy argument 'x=' (not assumed shape or rank) must be simply contiguous
45 !ERROR: Actual argument associated with coarray dummy argument 'x=' (not assumed shape or rank) must be simply contiguous