1! { dg-do run }
2! { dg-options "-fno-range-check" }
3program test
4  integer :: i
5  i = int(z'FFFFFFFF',kind(i))
6  if (i /= -1) STOP 1
7  if (int(z'FFFFFFFF',kind(i)) /= -1) STOP 2
8
9  if (popcnt(int(z'0F00F00080000001',8)) /= 10) STOP 3
10  if (popcnt(int(z'800F0001',4)) /= 6) STOP 4
11
12end program test
13