Retro68/gcc/gcc/testsuite/gfortran.dg/byte_2.f90

23 lines
341 B
Fortran
Raw Normal View History

2012-03-27 23:13:14 +00:00
! { dg-do run }
! { dg-options "-std=gnu" }
program testbyte
integer(1) :: ii = 7
call foo(ii)
end program testbyte
subroutine foo(ii)
integer(1) ii
byte b
b = ii
call bar(ii,b)
end subroutine foo
subroutine bar(ii,b)
integer (1) ii
byte b
if (b.ne.ii) then
! print *,"Failed"
2018-12-28 15:30:48 +00:00
STOP 1
2012-03-27 23:13:14 +00:00
end if
end subroutine bar