1! { dg-do compile } 2! { dg-options "-fdump-tree-original" } 3! 4! PR fortran/56079 5! 6use iso_c_binding 7implicit none 8type t 9 type(c_ptr) :: ptr = c_null_ptr 10end type t 11 12type(t), parameter :: para = t() 13integer(c_intptr_t) :: intg 14intg = transfer (para, intg) 15intg = transfer (para%ptr, intg) 16end 17 18! { dg-final { scan-tree-dump-times "intg = 0;" 2 "original" } } 19 20