URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [bind_c_usage_22.f90] - Rev 700
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do compile }! { dg-options "-std=f2008ts" }!! PR fortran/48858! PR fortran/48820!! OPTIONAL + BIND(C) is allowed since TS 29113!! VALIDsubroutine sub(z) bind(C)use iso_c_bindinginteger(c_int), value :: zend subroutine sub! VALID since TS29113subroutine sub2(z) bind(C)use iso_c_bindinginteger(c_int), optional :: zend subroutine sub2! VALID since TS29113subroutine sub2a(z) bind(C)use iso_c_bindinginteger(c_int) :: zoptional :: zend subroutine sub2a! VALID since TS29113subroutine sub2b(z) bind(C)use iso_c_bindingoptional :: zinteger(c_int) :: zend subroutine sub2b! Invalidsubroutine sub3(z) bind(C) ! { dg-error "cannot have both the OPTIONAL and the VALUE attribute" }use iso_c_bindinginteger(c_int), value, optional :: zend subroutine sub3! Invalidsubroutine sub3a(z) bind(C) ! { dg-error "cannot have both the OPTIONAL and the VALUE attribute" }use iso_c_bindinginteger(c_int) :: zoptional :: zvalue :: zend subroutine sub3a! Invalidsubroutine sub3b(z) bind(C) ! { dg-error "cannot have both the OPTIONAL and the VALUE attribute" }use iso_c_bindingoptional :: zvalue :: zinteger(c_int) :: zend subroutine sub3b! Invalidsubroutine sub3c(z) bind(C) ! { dg-error "cannot have both the OPTIONAL and the VALUE attribute" }use iso_c_bindingvalue :: zinteger(c_int) :: zoptional :: zend subroutine sub3c
Go to most recent revision | Compare with Previous | Blame | View Log
