summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr40587.f
blob: 0761d9d7e90d5a4b41541921cf2f2c69d4703f3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
C PR traget/40587
C { dg-do compile }
C { dg-options "-O2" }
      subroutine TEST(i, r, result)
      implicit none
      integer i
      REAL*8 r
      REAL*8 result
      REAL*8 r2
      if(i.eq.0) then
         r2 = r
      else
         call ERROR()
      endif
      result = r2
      return
      end