view gcc/testsuite/gfortran.dg/c_f_pointer_shape_tests_6.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
!
! PR 60302: [4.9 Regression] ICE with c_f_pointer and android cross compiler
!
! Contributed by Valery Weber <valeryweber@hotmail.com>

subroutine reshape_inplace_c2_c2 (new_shape)
  use, intrinsic :: iso_c_binding
  implicit none
  integer :: new_shape(:)
  complex, pointer :: ptr_x(:)
  type(c_ptr) :: loc_x
  call c_f_pointer (loc_x, ptr_x, new_shape)
end subroutine