1 ! RUN: %python %S/test_errors.py %s %flang_fc1
9 procedure(integer) :: b
12 !ERROR: 'missing' must be an abstract interface or a procedure with an explicit interface
13 procedure(missing
) :: e
14 !ERROR: 'b' must be an abstract interface or a procedure with an explicit interface
18 !ERROR: 'h' must be an abstract interface or a procedure with an explicit interface
20 procedure(forward
) :: j
21 !ERROR: 'bad1' must be an abstract interface or a procedure with an explicit interface
23 !ERROR: 'bad2' must be an abstract interface or a procedure with an explicit interface
25 !ERROR: 'bad3' must be an abstract interface or a procedure with an explicit interface
38 type :: m
! the name of a module can be used as a local identifier
41 external :: a
, b
, c
, d
42 !ERROR: EXTERNAL attribute not allowed on 'm'
44 !ERROR: EXTERNAL attribute not allowed on 'foo'
46 !ERROR: EXTERNAL attribute not allowed on 'bar'
49 !ERROR: PARAMETER attribute not allowed on 'm'
51 !ERROR: PARAMETER attribute not allowed on 'foo'
53 !ERROR: PARAMETER attribute not allowed on 'bar'
59 !ERROR: 'proc' must be an abstract interface or a procedure with an explicit interface
60 !ERROR: Procedure component 'p1' has invalid interface 'proc'
61 procedure(proc
), deferred
:: p1
73 !ERROR: Abstract interface 'foo' may not be called
75 !ERROR: Abstract interface 'f' may not be called