URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [compile/] [enum_1.f90] - Rev 695
Compare with Previous | Blame | View Log
! Program to test parsing of ENUM in different program unitsprogram mainimplicit noneinterfacesubroutine sub1end subroutine sub1end interfaceinteger :: i = 55enum , bind (c)enumerator :: a , b=5enumerator c, dend enumcall subcall sub1i = fun()containssubroutine subenum, bind(c)enumerator :: p = b, q = 10 + 50enumerator r, send enumend subroutine subfunction fun()integer :: funenum, bind (c)enumerator :: red, yellow = 23enumerator :: blueenumerator :: greenend enumfun = 1end function funend program mainsubroutine sub1implicit noneenum, bind(c)enumerator x , yenumerator :: z = 100end enumend subroutine sub1
