RISC-V: Regenerate opt urls.
[official-gcc.git] / gcc / testsuite / gfortran.dg / nearest_5.f90
blobdbb0b7209af631f9264d13d0a011f1d488b2e7df
1 ! { dg-do compile }
2 program a
3 real x, y(2)
4 x = 1./3.
5 y = [1, 2] / 3.
6 print *, nearest(x, 0.) ! { dg-error "shall not be zero" }
7 print *, nearest(y, 0.) ! { dg-error "shall not be zero" }
8 print *, nearest([1., 2.] / 3., 0.) ! { dg-error "shall not be zero" }
9 print *, nearest(1., 0.) ! { dg-error "shall not be zero" }
10 end program a