1 ! RUN: %python %S/test_errors.py %s %flang_fc1
29 !ERROR: The binding of 'a' ('missing') must be either an accessible module procedure or an external procedure with an explicit interface
30 procedure
, nopass
:: a
=> missing
31 procedure
, nopass
:: b
=> s
, s2
32 !ERROR: Type parameter, component, or procedure binding 'c' already defined in this type
33 procedure
, nopass
:: c
34 !ERROR: DEFERRED is only allowed when an interface-name is provided
35 procedure
, nopass
, deferred
:: d
=> s
36 !Note: s3 not found because it's not accessible -- should we issue a message
38 !ERROR: 's3' must be either an accessible module procedure or an external procedure with an explicit interface
39 procedure
, nopass
:: s3
40 procedure
, nopass
:: foo
41 !ERROR: 'absfoo' must be either an accessible module procedure or an external procedure with an explicit interface
42 procedure
, nopass
:: absfoo
43 !ERROR: 'bar' must be either an accessible module procedure or an external procedure with an explicit interface
44 procedure
, nopass
:: bar
45 !ERROR: 'i' must be either an accessible module procedure or an external procedure with an explicit interface
46 procedure
, nopass
:: i
47 !ERROR: Type parameter, component, or procedure binding 'b' already defined in this type
48 procedure
, nopass
:: b
=> s4
49 !ERROR: DEFERRED is required when an interface-name is provided
50 procedure(foo
), nopass
:: g
52 type, abstract
:: t1a
! DEFERRED valid only in ABSTRACT derived type
54 procedure(foo
), nopass
, deferred
:: e
55 procedure(s
), nopass
, deferred
:: f
56 !ERROR: Type parameter, component, or procedure binding 'f' already defined in this type
57 procedure(foo
), nopass
, deferred
:: f
58 !ERROR: 'bar' must be an abstract interface or a procedure with an explicit interface
59 procedure(bar
), nopass
, deferred
:: h
64 procedure
, nopass
:: b
=> s
66 !ERROR: FINAL subroutine 'i' of derived type 't2' must be a module procedure
72 procedure
, nopass
:: b
=> s
73 procedure
, nopass
, public
:: f