summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr17229.f
blob: 65f72b04d10ed2cd9f3503f51897f8235ed794e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
! PR fortran/17229
! { dg-do run }

      integer i
      logical l

      l = .false.
      i = -1
      if (l) if (i) 999,999,999 ! { dg-warning "Obsolescent feature" }

      l = .true.
      if (l) if (i) 10,999,999 ! { dg-warning "Obsolescent feature" }
      go to 999

   10 i = 0
      if (l) if (i) 999,20,999 ! { dg-warning "Obsolescent feature" }
      go to 999

   20 i = 1
      if (l) if (i) 999,999,30 ! { dg-warning "Obsolescent feature" }
      go to 999

  999 call abort
   30 end