Brad King f3cd1e06f5 Test C, C++, Fortran interface combinations
Previously the Fortran test created a single executable containing C,
C++, and Fortran sources.  This commit divides the executable into three
libraries corresponding to each language, and two executables testing
Fortran/C only and Fortran/C/C++ together.  The result tests more
combinations of using the languages together, and that language
requirements propagate through linking.
2009-08-04 14:06:45 -04:00

13 lines
174 B
C

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