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] - Blame information for rev 720

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
!
3
! PR 45507: [4.6 Regression] Bogus Error: Can't convert TYPE(c_ptr) to INTEGER(4)
4
!
5
! Contributed by Andrew Benson 
6
 
7
 use, intrinsic :: iso_c_binding
8
 
9
 type :: cType
10
   type(c_ptr) :: accelPtr = c_null_ptr
11
 end type cType
12
 
13
 type(cType), allocatable, dimension(:) :: filters
14
 class(cType), allocatable :: f
15
 
16
 allocate(filters(1))
17
 allocate(f,MOLD=filters(1))
18
 
19
end

powered by: WebSVN 2.1.0

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