13 lines · plain
1! RUN: %python %S/test_errors.py %s %flang_fc1 -pedantic2! Interoperable objects that require descriptors cannot be CONTIGUOUS3subroutine interop(ptr,ashape,arank,eshape,asize) bind(c)4 !ERROR: An interoperable pointer must not be CONTIGUOUS5 real, pointer, contiguous :: ptr(:)6 real, contiguous :: ashape(:) ! ok7 real, contiguous :: arank(..) ! ok8 !PORTABILITY: CONTIGUOUS entity 'eshape' should be an array pointer, assumed-shape, or assumed-rank [-Wredundant-contiguous]9 real, contiguous :: eshape(10)10 !PORTABILITY: CONTIGUOUS entity 'asize' should be an array pointer, assumed-shape, or assumed-rank [-Wredundant-contiguous]11 real, contiguous :: asize(*)12end13