1 ! RUN: %python %S/test_errors.py %s %flang_fc1
5 !ERROR: The associate name 'a' is already used in this associate statement
6 associate(a
=> x
, b
=> x
+1, a
=> x
+2)
9 !ERROR: No explicit type declared for 'b'
14 !ERROR: Associate name 'a' must have a type
20 ! Test that associated entities are not preventing to fix
21 ! mis-parsed function references into array references
23 associate (b
=> a(2:10:2))
24 ! Check no complains about "Use of 'b' as a procedure"
27 associate (c
=> a(2:10:2))
28 ! Check the function reference has been fixed to an array reference
29 !ERROR: Reference to array 'c' with empty subscript list