1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! Check for C1801 - C1805
17 ! ERROR: A derived type with the BIND attribute cannot have the SEQUENCE attribute
23 ! ERROR: A derived type with the BIND attribute has type parameter(s)
24 type, bind(c
) :: t2(k
)
29 ! ERROR: A derived type with the BIND attribute cannot extend from another derived type
30 type, bind(c
), extends(v
) :: t3
34 ! ERROR: A derived type with the BIND attribute cannot have a type bound procedure
38 procedure
, nopass
:: b
=> s
41 ! WARNING: A derived type with the BIND attribute is empty
45 ! ERROR: A derived type with the BIND attribute cannot have a pointer or allocatable component
50 ! ERROR: A derived type with the BIND attribute cannot have a pointer or allocatable component
52 integer, allocatable
:: y
55 ! ERROR: The component of the interoperable derived type must have the BIND attribute
66 !ERROR: Each component of an interoperable derived type must have an interoperable type
70 !ERROR: Each component of an interoperable derived type must have an interoperable type
74 !ERROR: Each component of an interoperable derived type must have an interoperable type
78 !ERROR: Each component of an interoperable derived type must have an interoperable type
82 !ERROR: Each component of an interoperable derived type must have an interoperable type