1 ! RUN: %python %S/test_errors.py %s %flang_fc1 -pedantic
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
24 !ERROR: Procedure 'k1' may not be an array without an explicit interface
26 !ERROR: 'bad2' must be an abstract interface or a procedure with an explicit interface
28 !ERROR: 'bad3' must be an abstract interface or a procedure with an explicit interface
41 !PORTABILITY: Name 'm' declared in a module should not have the same name as the module
45 !ERROR: EXTERNAL attribute was already specified on 'a'
46 !ERROR: EXTERNAL attribute was already specified on 'b'
47 !ERROR: EXTERNAL attribute was already specified on 'c'
48 !ERROR: EXTERNAL attribute was already specified on 'd'
49 external :: a
, b
, c
, d
50 !ERROR: EXTERNAL attribute not allowed on 'm'
52 !WARNING: EXTERNAL attribute was already specified on 'foo'
54 !ERROR: EXTERNAL attribute not allowed on 'bar'
57 !ERROR: An entity may not have the ASYNCHRONOUS attribute unless it is a variable
61 !ERROR: PARAMETER attribute not allowed on 'm'
63 !ERROR: PARAMETER attribute not allowed on 'foo'
65 !ERROR: PARAMETER attribute not allowed on 'bar'
71 !ERROR: 'proc' must be an abstract interface or a procedure with an explicit interface
72 !ERROR: Procedure component 'p1' must have NOPASS attribute or explicit interface
73 procedure(proc
), deferred
:: p1
84 !ERROR: An entity may not have the ASYNCHRONOUS attribute unless it is a variable
87 !ERROR: Abstract procedure interface 'foo2' may not be referenced
89 !ERROR: Abstract procedure interface 'f' may not be referenced