diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/proc_ptr_7.c')
-rw-r--r-- | gcc/testsuite/gfortran.dg/proc_ptr_7.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/proc_ptr_7.c b/gcc/testsuite/gfortran.dg/proc_ptr_7.c new file mode 100644 index 000000000..7e9542fd8 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/proc_ptr_7.c @@ -0,0 +1,10 @@ +/* Procedure pointer test. Used by proc_ptr_7.f90. + PR fortran/32580. */ + +int f(void) { + return 42; +} + +void assignf_(int(**ptr)(void)) { + *ptr = f; +} |