2 ! { dg-options "-fcoarray=single" }
4 ! Coarray declaration constraint checks
7 function foo3a() result(res
)
10 codimension
:: res
[*] ! { dg-error "CODIMENSION attribute conflicts with RESULT" }
13 function foo2a() result(res
)
14 integer :: res
[*] ! { dg-error "CODIMENSION attribute conflicts with RESULT" }
17 function fooa() result(res
) ! { dg-error "shall not be a coarray or have a coarray component" }
20 integer, allocatable
:: A
[:]
25 function foo3() ! { dg-error "shall not be a coarray or have a coarray component" }
28 codimension
:: foo3
[*]
31 function foo2() ! { dg-error "shall not be a coarray or have a coarray component" }
36 function foo() ! { dg-error "shall not be a coarray or have a coarray component" }
38 integer, allocatable
:: A
[:]
46 type(c_ptr
), save :: caf
[*] ! { dg-error "shall not be a coarray" }
52 type(c_funptr
), save :: caf
[*] ! { dg-error "shall not be a coarray" }