ieee_9.f90: XFAIL on arm*-*-gnueabi[hf].
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr67615.f90
blobfb95958007fcc0691c2b4ff7d23126f9b138c22b
1 ! { dg-do compile }
2 ! { dg-options "-std=legacy" }
3 ! PR fortran/67615
5 program foo
7 implicit none
9 integer i(2), j
10 real x
11 complex z
13 j = 2
14 if (j) 10, 20, 30
16 x = -1
17 if (x) 10, 20, 30
19 z = (1,2)
20 if (z) 10, 20, 30 ! { dg-error "Arithmetic IF statement" }
22 i = [1, 2]
23 if (i) 10, 20, 30 ! { dg-error "Arithmetic IF statement" }
25 if ( [1] ) 10, 20, 30 ! { dg-error "Arithmetic IF statement" }
26 if ( [1, -1] ) 10, 20, 30 ! { dg-error "Arithmetic IF statement" }
27 if ( [real :: 1, -1] ) 10, 20, 30 ! { dg-error "Arithmetic IF statement" }
29 10 stop
30 20 stop
31 30 stop
33 end program foo