1 ! RUN: %python %S/test_errors.py %s %flang_fc1 -pedantic
17 character(3), allocatable
:: x
20 character(3), pointer :: x
26 character(2) short
, shortarr(1)
27 character(2), allocatable
:: shortalloc
28 character(2), pointer :: shortptr
29 character(4) long
, longarr(1)
30 character(4), allocatable
:: longalloc
31 character(4), pointer :: longptr
32 !WARNING: Actual argument variable length '2' is less than expected length '3'
34 !ERROR: Actual argument array has fewer characters (2) than dummy argument 'x=' array (3)
36 !ERROR: Actual argument variable length '2' does not match the expected length '3'
38 !ERROR: Actual argument variable length '2' does not match the expected length '3'
40 !ERROR: Actual argument variable length '2' does not match the expected length '3'
42 !ERROR: Actual argument variable length '2' does not match the expected length '3'
43 !ERROR: Target type CHARACTER(KIND=1,LEN=2_8) is not compatible with pointer type CHARACTER(KIND=1,LEN=3_8)
47 !ERROR: Actual argument variable length '4' does not match the expected length '3'
49 !ERROR: Actual argument variable length '4' does not match the expected length '3'
51 !ERROR: Actual argument variable length '4' does not match the expected length '3'
53 !ERROR: Actual argument variable length '4' does not match the expected length '3'
54 !ERROR: Target type CHARACTER(KIND=1,LEN=4_8) is not compatible with pointer type CHARACTER(KIND=1,LEN=3_8)