CMake/Tests/Fortran/maincxx.c
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

7 lines
87 B
C

extern int myc(void);
extern int mycxx(void);
int main()
{
return myc() + mycxx();
}