1 ! RUN: %python %S/test_errors.py %s %flang_fc1
11 procedure(integer) :: b
14 !ERROR: 'missing' must be an abstract interface or a procedure with an explicit interface
15 procedure(missing
) :: e
16 !ERROR: 'b' must be an abstract interface or a procedure with an explicit interface
20 !ERROR: 'h' must be an abstract interface or a procedure with an explicit interface
22 procedure(forward
) :: j
23 !ERROR: 'bad1' must be an abstract interface or a procedure with an explicit interface
25 !ERROR: 'bad2' must be an abstract interface or a procedure with an explicit interface
27 !ERROR: 'bad3' must be an abstract interface or a procedure with an explicit interface
40 !PORTABILITY: Name 'm' declared in a module should not have the same name as the module
44 !ERROR: EXTERNAL attribute was already specified on 'a'
45 !ERROR: EXTERNAL attribute was already specified on 'b'
46 !ERROR: EXTERNAL attribute was already specified on 'c'
47 !ERROR: EXTERNAL attribute was already specified on 'd'
48 external :: a
, b
, c
, d
49 !ERROR: EXTERNAL attribute not allowed on 'm'
51 !WARNING: EXTERNAL attribute was already specified on 'foo'
53 !ERROR: EXTERNAL attribute not allowed on 'bar'
56 !ERROR: PARAMETER attribute not allowed on 'm'
58 !ERROR: PARAMETER attribute not allowed on 'foo'
60 !ERROR: PARAMETER attribute not allowed on 'bar'
66 !ERROR: 'proc' must be an abstract interface or a procedure with an explicit interface
67 !ERROR: Procedure component 'p1' must have NOPASS attribute or explicit interface
68 procedure(proc
), deferred
:: p1
80 !ERROR: Abstract procedure interface 'foo2' may not be referenced
82 !ERROR: Abstract procedure interface 'f' may not be referenced