re PR fortran/46974 (ICE with TRANSFER using a C_PTR entity)
authorTobias Burnus <burnus@net-b.de>
Mon, 20 Dec 2010 21:43:58 +0000 (22:43 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Mon, 20 Dec 2010 21:43:58 +0000 (22:43 +0100)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/c_ptr_tests_16.f90

index a26fd3791d33af4f6b89876c9a4997f8c91b6ec8..029fa037880d797316dcf6fd70e93287898ad1cb 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        PR testsuite/45342
index 3a51d28a6842ab75ddce25744efc59d681d5da3b..8855d62abaacf3af2addab912e98bf30461671a6 100644 (file)
@@ -10,7 +10,11 @@ program test
   integer(c_intptr_t) :: a
   integer(transfer(transfer(4_c_intptr_t, c_null_ptr),1_c_intptr_t)) :: b
   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
 
 ! Examples contributed by Steve Kargl and James Van Buskirk