1! RUN: %B/test/Semantics/test_errors.sh %s %flang %t
2subroutine s
3  !ERROR: Declaration of 'x' conflicts with its use as internal procedure
4  real :: x
5contains
6  subroutine x
7  end
8end
9
10module m
11  !ERROR: Declaration of 'x' conflicts with its use as module procedure
12  real :: x
13contains
14  subroutine x
15  end
16end
17