diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/byte_2.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/byte_2.f90 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/byte_2.f90 b/gcc/testsuite/gfortran.dg/byte_2.f90 new file mode 100644 index 000000000..a41005557 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/byte_2.f90 @@ -0,0 +1,22 @@ +! { 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 |