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: Array spec was already declared for 'b'
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 not a variable
70 integer(8), parameter :: k
= 2
73 !ERROR: 't' is not a variable
75 !ERROR: 's' is not a variable
77 !ERROR: 'k' is not a variable
90 !ERROR: 'b' cannot be a Cray pointee as it is use-associated
96 !ERROR: PARAMETER attribute not allowed on 'a'
98 !ERROR: PARAMETER attribute not allowed on 'b'
113 !ERROR: Type of Cray pointee 'x2' is a non-sequence derived type