URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [arithmeticif.f90] - Rev 303
Compare with Previous | Blame | View Log
! Program to test the arithmetic if statementfunction testif (a)implicit noneinteger a, b, testifif (a) 1, 2, 3b = 2goto 41 b = -1goto 42 b = 0goto 43 b = 14 testif = bend functionprogram testwriteimplicit noneinteger iinteger testifif (testif (-10) .ne. -1) call abortif (testif (0) .ne. 0) call abortif (testif (10) .ne. 1) call abortend program
