OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [nearest_5.f90] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { 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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.