Files
CMake/Tests/Fortran/myc.c
William R. Dieter 812000904e Tests: Add Fortran test C function prototype
One of three Fortran/C interface test functions is missing a prototype,
which causes warnings and sometimes errors depending on compiler versions
and flags.

Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
2022-06-14 07:52:25 -04:00

14 lines
206 B
C

#include "foo.h"
extern void F_test_mod_sub(void);
extern void F_my_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;
}