PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / allocate_alloc_opt_12.f90
blob2af069293536a8f76c2f5d4b99c8d3a3b018743b
1 ! { dg-do compile }
3 ! PR 45507: [4.6 Regression] Bogus Error: Can't convert TYPE(c_ptr) to INTEGER(4)
5 ! Contributed by Andrew Benson <abenson@its.caltech.edu>
7 use, intrinsic :: iso_c_binding
9 type :: cType
10 type(c_ptr) :: accelPtr = c_null_ptr
11 end type cType
13 type(cType), allocatable, dimension(:) :: filters
14 class(cType), allocatable :: f
16 allocate(filters(1))
17 allocate(f,MOLD=filters(1))
19 end