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