blob: 7bccd50f7a9144e5538db526bf26f7fc3072205e [file] [log] [blame]
! RUN: %flang_fc1 -fsyntax-only -pedantic %s 2>&1 | FileCheck %s --allow-empty
! Regression test for bogus use-association name conflict
! error: Cannot use-associate 's2'; it is already declared in this scope
! CHECK-NOT: error:
module m1
contains
subroutine s1
end
subroutine s2
end
end
module m2
use m1, s1a => s1
use m1, s2a => s2
contains
subroutine s1
end
subroutine s2
end
end