brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · c4163fe Raw
33 lines · plain
1! RUN: %python %S/test_errors.py %s %flang_fc12module m3! C743 No component-attr-spec shall appear more than once in a 4! given component-def-stmt.5!6! R737 data-component-def-stmt ->7!        declaration-type-spec [[, component-attr-spec-list] ::]8!        component-decl-list9!  component-attr-spec values are:10!    PUBLIC, PRIVATE, ALLOCATABLE, CODIMENSION [*], CONTIGUOUS, DIMENSION(5), 11!      POINTER12 13  type :: derived14    !WARNING: Attribute 'PUBLIC' cannot be used more than once [-Wredundant-attribute]15    real, public, allocatable, public :: field116    !WARNING: Attribute 'PRIVATE' cannot be used more than once [-Wredundant-attribute]17    real, private, allocatable, private :: field218    !ERROR: Attributes 'PUBLIC' and 'PRIVATE' conflict with each other19    real, public, allocatable, private :: field320    !WARNING: Attribute 'ALLOCATABLE' cannot be used more than once [-Wredundant-attribute]21    real, allocatable, public, allocatable :: field422    !ERROR: Attribute 'CODIMENSION' cannot be used more than once23    real, public, codimension[:], allocatable, codimension[:] :: field524    !WARNING: Attribute 'CONTIGUOUS' cannot be used more than once [-Wredundant-attribute]25    real, public, contiguous, pointer, contiguous, dimension(:) :: field626    !ERROR: Attribute 'DIMENSION' cannot be used more than once27    real, dimension(5), public, dimension(5) :: field728    !WARNING: Attribute 'POINTER' cannot be used more than once [-Wredundant-attribute]29    real, pointer, public, pointer :: field830  end type derived31 32end module m33