Debian Codegraph @

gcc/testsuite/gfortran.dg/lto/bind_c-1_0.f90

raw
1 ! { dg-lto-do run }
2 ! { dg-lto-options {{ -O3 -flto }} }
3 ! This testcase will abort if C_PTR is not interoperable with both int *
4 ! and float *
5 module lto_type_merge_test
6 use, intrinsic :: iso_c_binding
7 implicit none
8
9 type, bind(c) :: MYFTYPE_1
10 type(c_ptr) :: ptr
11 type(c_ptr) :: ptrb
12 end type MYFTYPE_1
13
14 type(myftype_1), bind(c, name="myVar") :: myVar
15
16 contains
17 subroutine types_test() bind(c)
18 myVar%ptr = myVar%ptrb
19 end subroutine types_test
20 end module lto_type_merge_test
21