2 ! { dg-additional-options "-fcoarray=single" }
9 class(*), optional
:: x
, y
10 optional
:: x
! { dg-error "Duplicate OPTIONAL attribute" }
13 target
:: x
! { dg-error "Duplicate TARGET attribute" }
14 allocatable
:: x
! { dg-error "Duplicate ALLOCATABLE attribute" }
17 pointer :: y
! { dg-error "Duplicate POINTER attribute" }
18 contiguous
:: y
! { dg-error "Duplicate CONTIGUOUS attribute" }
22 codimension
:: x
[:] ! { dg-error "Duplicate CODIMENSION attribute" }
23 dimension :: y(:) ! { dg-error "Duplicate DIMENSION attribute" }