Commit 3d4f6906 by Tobias Burnus Committed by Tobias Burnus

re PR fortran/46974 (ICE with TRANSFER using a C_PTR entity)

2010-12-20  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46974
        * gfortran.dg/c_ptr_tests_16.f90: Fix endian issue.

From-SVN: r168095
parent b5a54c03
2010-12-20 Tobias Burnus <burnus@net-b.de>
PR fortran/46974
* gfortran.dg/c_ptr_tests_16.f90: Fix endian issue.
2010-12-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 2010-12-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR testsuite/45342 PR testsuite/45342
......
...@@ -10,7 +10,11 @@ program test ...@@ -10,7 +10,11 @@ program test
integer(c_intptr_t) :: a integer(c_intptr_t) :: a
integer(transfer(transfer(4_c_intptr_t, c_null_ptr),1_c_intptr_t)) :: b integer(transfer(transfer(4_c_intptr_t, c_null_ptr),1_c_intptr_t)) :: b
a = transfer (transfer("ABCE", m), 1_c_intptr_t) a = transfer (transfer("ABCE", m), 1_c_intptr_t)
if (1162035777 /= a) call i_do_not_exist() print '(z8)', a
if ( int(z'45434241') /= a &
.and. int(z'41424345') /= a &
.and. int(z'4142434500000000',kind=8) /= a) &
call i_do_not_exist()
end program test end program test
! Examples contributed by Steve Kargl and James Van Buskirk ! Examples contributed by Steve Kargl and James Van Buskirk
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment