blob: 7d5b4d67cfd3af3e321de1431d16d6c6162e97a9 [file] [log] [blame]
! { dg-do compile }
! { dg-options "-funsigned" }
! Test that overflow warned about.
program main
unsigned(1) :: u
u = 256u_1 ! { dg-warning "Unsigned constant truncated" }
u = -127u_1
u = 255u_1
u = -129u_1 ! { dg-warning "Unsigned constant truncated" }
end