1 ! RUN: %python %S/test_errors.py %s %flang_fc1
3 integer(8) :: a
, b
, c
, d
5 !ERROR: 'b' cannot be a Cray pointer as it is already a Cray pointee
7 !ERROR: 'a' cannot be a Cray pointee as it is already a Cray pointer
13 !ERROR: 'c' was already declared as a Cray pointee
19 !ERROR: Cray pointer 'a' must have type INTEGER(8)
26 !ERROR: No explicit type declared for 'd'
32 !ERROR: Cray pointer 'a' must be a scalar
38 !ERROR: The dimensions of 'b' have already been declared
43 !ERROR: Cray pointee 'b' must have explicit shape or assumed size
47 real :: x(*) ! assumed size
48 !ERROR: Cray pointee 'y' must have explicit shape or assumed size
49 real :: y(:) ! assumed shape
55 integer(8), parameter :: k
= 2
58 !ERROR: 't' is not a variable
60 !ERROR: 's' is not a variable
62 !ERROR: 'k' is a named constant and may not be a Cray pointer
70 integer(8), parameter :: k
= 2
73 !ERROR: 't' is already declared in this scoping unit
75 !ERROR: Declaration of 's' conflicts with its use as internal procedure
77 !ERROR: 'k' is a named constant and may not be a Cray pointee
90 !ERROR: 'b' is use-associated from module 'm10' and cannot be re-declared
96 !ERROR: PARAMETER attribute not allowed on 'a'
98 !ERROR: PARAMETER attribute not allowed on 'b'
117 !WARNING: Type of Cray pointee 'x2' is a derived type that is neither SEQUENCE nor BIND(C)
126 pointer(ip
, x
) ! ok, local declaration
134 !ERROR: PARAMETER attribute not allowed on 'r'