1 ! RUN: not %flang_fc1 -pedantic %s 2>&1 | FileCheck %s
2 ! Test extension: allow forward references to dummy arguments
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: Dummy argument 'n1' was used without being explicitly typed
8 !CHECK: error: No explicit type declared for dummy argument 'n1'
14 !CHECK: Dummy argument 'n2' was used without being explicitly typed
15 subroutine foo2(a
, n2
)
18 !CHECK: error: The type of 'n2' has already been implicitly declared
22 !CHECK: Dummy argument 'n3' was used without being explicitly typed
23 !CHECK-NOT: error: Dummy argument 'n3'
24 subroutine foo3(a
, n3
)