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] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 303 jeremybenn
! Test empty if statements.  We Used to fail this because we folded
2
! the if stmt before we finished building it.
3
program emptyif
4
  implicit none
5
  integer i
6
 
7
  i=1
8
  if(i .le. 0) then
9
  else
10
    i = 2
11
  endif
12
  if (i .ne. 2) call abort()
13
 
14
  if (i .eq. 0) then
15
  elseif (i .eq. 2) then
16
    i = 3
17
  end if
18
  if (i .ne. 3) call abort()
19
end
20
 

powered by: WebSVN 2.1.0

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