aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/c_f_pointer_tests_5.f90
blob: 5194e40b1ea1cad849505cafe57036afc761efc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
! { dg-do compile }
!
! PR 54667: [OOP] gimplification failure with c_f_pointer
!
! Contributed by Andrew Benson <abensonca@gmail.com>

use, intrinsic :: ISO_C_Binding
type :: nc
end type
type(c_ptr) :: cSelf
class(nc), pointer :: self
call c_f_pointer(cSelf, self)  ! { dg-error "shall not be polymorphic" }
end