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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gfortran.dg/] [pr17229.f] - Rev 20

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

! PR fortran/17229
! { dg-do run }
      integer i
      logical l
 
      l = .false.
      i = -1
      if (l) if (i) 999,999,999 ! { dg-warning "Obsolete: arithmetic IF statement" }
 
      l = .true.
      if (l) if (i) 10,999,999 ! { dg-warning "Obsolete: arithmetic IF statement" }
      go to 999
 
   10 i = 0
      if (l) if (i) 999,20,999 ! { dg-warning "Obsolete: arithmetic IF statement" }
      go to 999
 
   20 i = 1
      if (l) if (i) 999,999,30 ! { dg-warning "Obsolete: arithmetic IF statement" }
      go to 999
 
  999 call abort
   30 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.