1! RUN: %B/test/Semantics/test_errors.sh %s %flang %t
2module m1
3  integer :: x
4  integer :: y
5  integer :: z
6end
7module m2
8  real :: y
9  real :: z
10  real :: w
11end
12
13use m1, xx => x, y => z
14use m2
15volatile w
16!ERROR: Cannot change CONTIGUOUS attribute on use-associated 'w'
17contiguous w
18!ERROR: 'z' is use-associated from module 'm2' and cannot be re-declared
19integer z
20!ERROR: Reference to 'y' is ambiguous
21y = 1
22end
23