URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [fmt_int_sign.f90] - Rev 313
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do run }
! { dg-options -fno-range-check }
! PR38504 double minus sign when printing integer
! Test case derived from example by Jos de Kloe
program IntAdtest
integer, parameter :: i8_ = Selected_Int_Kind(18) ! = integer*8
character(len=22) :: str_value
integer(i8_) :: value
character(len=*), parameter :: format_IntAd = "(i22)"
value = -9223372036854775807_i8_ -1
write(str_value, format_IntAd) value
if (str_value.ne." -9223372036854775808") call abort
end program IntAdtest
Go to most recent revision | Compare with Previous | Blame | View Log