1 ! RUN: %S/test_errors.sh %s %t %flang_fc1
10 procedure(integer) :: b
13 !ERROR: 'missing' must be an abstract interface or a procedure with an explicit interface
14 procedure(missing
) :: e
15 !ERROR: 'b' must be an abstract interface or a procedure with an explicit interface
19 !ERROR: 'h' must be an abstract interface or a procedure with an explicit interface
21 procedure(forward
) :: j
22 !ERROR: 'bad1' must be an abstract interface or a procedure with an explicit interface
24 !ERROR: 'bad2' must be an abstract interface or a procedure with an explicit interface
26 !ERROR: 'bad3' must be an abstract interface or a procedure with an explicit interface
39 type :: m
! the name of a module can be used as a local identifier
42 external :: a
, b
, c
, d
43 !ERROR: EXTERNAL attribute not allowed on 'm'
45 !ERROR: EXTERNAL attribute not allowed on 'foo'
47 !ERROR: EXTERNAL attribute not allowed on 'bar'
50 !ERROR: PARAMETER attribute not allowed on 'm'
52 !ERROR: PARAMETER attribute not allowed on 'foo'
54 !ERROR: PARAMETER attribute not allowed on 'bar'
60 !ERROR: 'proc' must be an abstract interface or a procedure with an explicit interface
61 !ERROR: Procedure component 'p1' has invalid interface 'proc'
62 procedure(proc
), deferred
:: p1
74 !ERROR: Abstract interface 'foo' may not be called
76 !ERROR: Abstract interface 'f' may not be called