1 ! RUN: %python %S/test_errors.py %s %flang_fc1
19 type(t1
), intent(in
) :: x
22 type(t2
), intent(in
) :: x
25 type(t3
), intent(in
) :: x
28 type(t4
), intent(in
) :: x
37 generic
:: operator(+) => f
40 elemental
type(t10
) function f(x
,y
)
41 class(t10
), intent(in
) :: x
, y
47 use m2
, only
: rt10
=> t10
51 use m1
, only
: s1a
, s2a
, s3a
, s4a
53 use m3
, only
: rt10
! alias for t10, ensure no distinguishability error
56 integer :: x
! distinct type
62 type :: t3
! no SEQUENCE
66 real :: x
! not PRIVATE
68 interface distinguishable1
71 interface distinguishable2
74 interface distinguishable3
77 !ERROR: Generic 'indistinguishable' may not have specific procedures 's2b' and 's2a' as their interfaces are not distinguishable
78 interface indistinguishable
83 type(t1
), intent(in
) :: x
86 type(t2
), intent(in
) :: x
89 type(t3
), intent(in
) :: x
92 type(t4
), intent(in
) :: x