blob: 2bcbe829b863f70233d22d95f92767ecf0ea20cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
! { dg-do compile }
!
! PR fortran/44346
! Original test sumbitted by Vittorio Zecca, zeccav at gmail dot com.
! Modified by Steven G. Kargl for dejagnu testsuite.
!
program a
integer :: j, i = 42
j = ibits(i, -1, 1) ! { dg-error "must be nonnegative" }
j = ibits(i, 1, -1) ! { dg-error "must be nonnegative" }
j = ibits(i, 100, 100) ! { dg-error "must be less than" }
end program a
|