| 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 |
integer(c_signed_char) :: chr |
| 11 |
integer(c_signed_char) :: chrb |
| 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%chr = myVar%chrb |
| 19 |
end subroutine types_test |
| 20 |
end module lto_type_merge_test |
| 21 |
|