1 ! RUN: %python %S/test_errors.py %s %flang_fc1 -pedantic
3 real, pointer, contiguous
:: p1(:) ! ok
8 !WARNING: Use-associated 'p1' already has 'CONTIGUOUS' attribute
10 !ERROR: Cannot change CONTIGUOUS attribute on use-associated 'p2'
12 !PORTABILITY: CONTIGUOUS entity 'x' should be an array pointer, assumed-shape, or assumed-rank
14 !PORTABILITY: CONTIGUOUS entity 'scalar' should be an array pointer, assumed-shape, or assumed-rank
15 real, contiguous
, pointer :: scalar
16 !PORTABILITY: CONTIGUOUS entity 'allocatable' should be an array pointer, assumed-shape, or assumed-rank
17 real, contiguous
, allocatable
:: allocatable
19 !PORTABILITY: CONTIGUOUS entity 'func' should be an array pointer, assumed-shape, or assumed-rank
20 function func(ashape
,arank
) result(r
)
21 real, contiguous
:: ashape(:) ! ok
22 real, contiguous
:: arank(..) ! ok
23 !PORTABILITY: CONTIGUOUS entity 'r' should be an array pointer, assumed-shape, or assumed-rank
25 !PORTABILITY: CONTIGUOUS entity 'r2' should be an array pointer, assumed-shape, or assumed-rank
31 !PORTABILITY: CONTIGUOUS entity 'e' should be an array pointer, assumed-shape, or assumed-rank
36 real, pointer, contiguous
:: fp(:) ! ok