OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.fortran-torture/] [execute/] [emptyif.f90] - Rev 816

Go to most recent revision | Compare with Previous | Blame | View Log

! Test empty if statements.  We Used to fail this because we folded
! the if stmt before we finished building it.
program emptyif
  implicit none
  integer i
  
  i=1
  if(i .le. 0) then
  else
    i = 2
  endif
  if (i .ne. 2) call abort()

  if (i .eq. 0) then
  elseif (i .eq. 2) then
    i = 3
  end if
  if (i .ne. 3) call abort()
end

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.