CMake/Tests/Fortran/mycxx.cxx
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
91 B
C++

extern "C" int myc(void);
extern "C" int mycxx(void)
{
delete new int;
return myc();
}