| ! RUN: %python %S/test_errors.py %s %flang_fc1 |
| ! Test 15.5.2.7 constraints and restrictions for POINTER dummy arguments. |
| real, pointer, contiguous, intent(in) :: p(:) |
| real, pointer, intent(in) :: p(:) |
| !ERROR: CONTIGUOUS POINTER must be an array |
| real, pointer, contiguous :: a01 ! C830 |
| real :: a04(10) ! not TARGET |
| !ERROR: Actual argument associated with CONTIGUOUS POINTER dummy argument 'p=' must be simply contiguous |
| !ERROR: Actual argument associated with CONTIGUOUS POINTER dummy argument 'p=' must be simply contiguous |
| !ERROR: Actual argument associated with POINTER dummy argument 'p=' must also be POINTER unless INTENT(IN) |
| !ERROR: An array section with a vector subscript may not be a pointer target |
| !ERROR: A coindexed object may not be a pointer target |
| !ERROR: Target associated with dummy argument 'p=' must be a designator or a call to a pointer-valued function |
| !ERROR: In assignment to object dummy argument 'p=', the target 'a04' is not an object with POINTER or TARGET attributes |