Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/byte_2.f90 @ 128:fe568345ddd5
fix CbC-example
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 19:32:28 +0900 |
parents | 04ced10e8804 |
children | 84e7813d76e9 |
line wrap: on
line source
! { 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" call abort end if end subroutine bar