OSDN Git Service

* match.c (match_arithmetic_if): Arithmetic IF is obsolete in
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / pr17229.f
index b1a4471..4e96d29 100644 (file)
@@ -5,18 +5,18 @@
 
       l = .false.
       i = -1
-      if (l) if (i) 999,999,999
+      if (l) if (i) 999,999,999 ! { dg-warning "Obsolete: arithmetic IF statement" }
 
       l = .true.
-      if (l) if (i) 10,999,999
+      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
+      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
+      if (l) if (i) 999,999,30 ! { dg-warning "Obsolete: arithmetic IF statement" }
       go to 999
 
   999 call abort