1 ! RUN: not %flang_fc1 -pedantic %s 2>&1 | FileCheck %s
2 ! Test extension: allow forward references to dummy arguments or COMMON
3 ! from specification expressions in scopes with IMPLICIT NONE(TYPE),
4 ! as long as those symbols are eventually typed later with the
5 ! same integer type they would have had without IMPLICIT NONE.
7 !CHECK: warning: 'n1' was used without (or before) being explicitly typed
8 !CHECK: error: No explicit type declared for dummy argument 'n1'
14 !CHECK: warning: 'n2' was used without (or before) being explicitly typed
15 subroutine foo2(a
, n2
)
18 !CHECK: error: The type of 'n2' has already been implicitly declared
22 !CHECK: warning: 'n3' was used without (or before) being explicitly typed
23 !CHECK-NOT: error: Dummy argument 'n3'
24 subroutine foo3(a
, n3
)
30 !CHECK: warning: 'n4' was used without (or before) being explicitly typed
31 !CHECK: error: No explicit type declared for 'n4'
38 !CHECK: warning: 'n5' was used without (or before) being explicitly typed
43 !CHECK: error: The type of 'n5' has already been implicitly declared
47 !CHECK: warning: 'n6' was used without (or before) being explicitly typed