3 ! Using symbols with the name of the module
15 integer :: foo
! { dg-error "cannot have a type" }
19 use bar
, only
: foo
=> j
20 use foo
! ok, unless foo is accessed
24 use bar
, only
: foo
=> j
25 use foo
! ok, unless foo is accessed
26 foo
= 5 ! { dg-error "is an ambiguous reference to 'j'" }
30 use foo
, only
: foo
! { dg-error "been used as an external module name" }
31 use foo
, only
: i
=> foo
! { dg-error "been used as an external module name" }
32 use foo
, only
: foo
=> i
! { dg-error "been used as an external module name" }
34 ! { dg-final { cleanup-modules "foo bar test test2 test3" } }