1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! "Same type" checking for intrinsic assignment
11 type, bind(c
) :: bindCType
17 use m1
, modNonSeqType
=> nonSeqType
, modSeqType
=> seqType
, modBindCType
=> bindCType
25 type, bind(c
) :: bindCType
28 type(modNonSeqType
) :: mns1
, mns2
29 type(modSeqType
) :: ms1
, ms2
30 type(modBindCType
) :: mb1
, mb2
31 type(nonSeqType
) :: ns1
, ns2
32 type(seqType
) :: s1
, s2
33 type(bindCType
) :: b1
, b2
34 ! These are trivially ok
41 ! These are ok per 7.5.2.4
44 !ERROR: No intrinsic or user-defined ASSIGNMENT(=) matches operand types TYPE(modnonseqtype) and TYPE(nonseqtype)
46 !ERROR: No intrinsic or user-defined ASSIGNMENT(=) matches operand types TYPE(nonseqtype) and TYPE(modnonseqtype)