aarch64: Add vector floating point extend pattern [PR113880, PR113869]
[official-gcc.git] / gcc / testsuite / gfortran.dg / c_funptr_1.f90
blob541f07659604f9aac7f6ef9574cb5c00385b65fd
1 ! { dg-do preprocess }
2 ! { dg-additional-options "-cpp" }
3 ! PR 57048 - this used not to compile. Original test case by Angelo
4 ! Graziosi. Only works if compiled c_funptr_1_mod.f90, hence the
5 ! do-nothing directive above.
6 module procs
8 implicit none
9 private
11 public WndProc
13 contains
14 function WndProc()
15 integer :: WndProc
17 WndProc = 0
18 end function WndProc
19 end module procs
21 function WinMain()
22 use, intrinsic :: iso_c_binding, only: C_INT,c_sizeof,c_funloc
23 use win32_types
24 use procs
25 implicit none
27 integer :: WinMain
29 type(WNDCLASSEX_T) :: WndClass
31 WndClass%cbSize = int(c_sizeof(Wndclass),C_INT)
32 WndClass%lpfnWndProc = c_funloc(WndProc)
34 WinMain = 0
35 end function WinMain
37 program main
38 end