Files
CMake/Tests/Fortran/myc.c
William R. Dieter f905cfdc77 Tests: Fix Fortran test C function prototypes
Several extern functions were declared without return type, which results
in warnings.  The functions are for calling Fortran subroutines, so
there should not be a return value.

Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
2021-01-28 09:05:35 -05:00

13 lines
178 B
C

#include "foo.h"
extern void F_test_mod_sub(void);
extern void F_mysub(void);
int myc(void)
{
F_mysub();
F_my_sub();
#ifdef TEST_MOD
F_test_mod_sub();
#endif
return 0;
}