summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/btest_1.f90
blob: 8a72c314cd59f868d945f261fca85841e84f7fec (plain)
1
2
3
4
5
6
7
! { dg-do compile }
program a
   integer :: i = 42
   logical l
   l = btest(i, -1)  ! { dg-error "must be nonnegative" }
   l = btest(i, 65)  ! { dg-error "must be less than" }
end program a