PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / c_funloc_tests_7.f90
blob7a4464ab552898d8d114ea4e38a6d50b9d58ae1c
1 ! { dg-do compile }
2 ! { dg-options "-std=f2008ts -fdump-tree-original" }
4 ! Check relaxed TS29113 constraints for procedures
5 ! and c_f_*pointer argument checking for c_ptr/c_funptr.
8 use iso_c_binding
9 implicit none
10 type(c_funptr) :: cfp
12 integer, external :: noCsub
13 procedure(integer), pointer :: fint
15 cfp = c_funloc (noCsub)
16 call c_f_procpointer (cfp, fint)
17 end
19 ! { dg-final { scan-tree-dump-times "cfp =\[^;\]+ nocsub;" 1 "original" } }
20 ! { dg-final { scan-tree-dump-times "fint =\[^;\]+ cfp;" 1 "original" } }