URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [coarray_26.f90] - Rev 700
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do compile }! { dg-options "-fcoarray=single" }!! Coarray declaration constraint checks!function foo3a() result(res)implicit noneinteger :: rescodimension :: res[*] ! { dg-error "CODIMENSION attribute conflicts with RESULT" }endfunction foo2a() result(res)integer :: res[*] ! { dg-error "CODIMENSION attribute conflicts with RESULT" }endfunction fooa() result(res) ! { dg-error "shall not be a coarray or have a coarray component" }implicit nonetype tinteger, allocatable :: A[:]end type ttype(t):: resendfunction foo3() ! { dg-error "shall not be a coarray or have a coarray component" }implicit noneinteger :: foo3codimension :: foo3[*]endfunction foo2() ! { dg-error "shall not be a coarray or have a coarray component" }implicit noneinteger :: foo2[*]endfunction foo() ! { dg-error "shall not be a coarray or have a coarray component" }type tinteger, allocatable :: A[:]end type ttype(t):: fooendsubroutine test()use iso_c_bindingimplicit nonetype(c_ptr), save :: caf[*] ! { dg-error "shall not be a coarray" }end subroutine testsubroutine test2()use iso_c_bindingimplicit nonetype(c_funptr), save :: caf[*] ! { dg-error "shall not be a coarray" }end subroutine test2
Go to most recent revision | Compare with Previous | Blame | View Log
