OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [allocate_alloc_opt_12.f90] - Rev 801

Go to most recent revision | Compare with Previous | Blame | View Log

! { dg-do compile }
!
! PR 45507: [4.6 Regression] Bogus Error: Can't convert TYPE(c_ptr) to INTEGER(4)
!
! Contributed by Andrew Benson <abenson@its.caltech.edu>

 use, intrinsic :: iso_c_binding

 type :: cType
   type(c_ptr) :: accelPtr = c_null_ptr
 end type cType

 type(cType), allocatable, dimension(:) :: filters
 class(cType), allocatable :: f

 allocate(filters(1))
 allocate(f,MOLD=filters(1))

end

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.