      program testbounds
C
C  this program illustates use of "bounds checking" flag
C  in compilers
C
C  GNU compiler g77/f77: -fbounds-check
C  Intel ifc/ifort       -CB
C

      implicit none
      real a(10)
      integer i

      do i = 1,20
           a(i) = sqrt(float(i))
      enddo
      end


