1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! Testing for pointer constant, along with :
3 ! C751 A component shall not have both the ALLOCATABLE and POINTER attributes.
4 ! C752 If the CONTIGUOUS attribute is specified, the component shall be an
5 ! array with the POINTER attribute.
6 ! C753 The * char-length option is permitted only if the component is of type
9 !ERROR: 'nullint' may not have both the POINTER and PARAMETER attributes
10 integer, pointer, parameter :: nullint
=> null()
12 !ERROR: 'pointerallocatablefield' may not have both the POINTER and ALLOCATABLE attributes
13 real, pointer, allocatable
:: pointerAllocatableField
14 real, dimension(:), contiguous
, pointer :: goodContigField
15 !ERROR: A CONTIGUOUS component must be an array with the POINTER attribute
16 real, dimension(:), contiguous
, allocatable
:: badContigField
17 character :: charField
* 3
18 !ERROR: A length specifier cannot be used to declare the non-character entity 'realfield'