diff options
author | Brad King <brad.king@kitware.com> | 2009-08-04 18:06:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-08-04 18:06:45 (GMT) |
commit | f3cd1e06f5a5fb092f249de3e1b582125d067daa (patch) | |
tree | 8c6c96e9c6e4c3cd8adf40462fbc56a9b8307e4f /Tests/Fortran/maincxx.c | |
parent | 39e0e04416e487e553dab5bcecb86466c937fb53 (diff) | |
download | CMake-f3cd1e06f5a5fb092f249de3e1b582125d067daa.zip CMake-f3cd1e06f5a5fb092f249de3e1b582125d067daa.tar.gz CMake-f3cd1e06f5a5fb092f249de3e1b582125d067daa.tar.bz2 |
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.
Diffstat (limited to 'Tests/Fortran/maincxx.c')
-rw-r--r-- | Tests/Fortran/maincxx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/Fortran/maincxx.c b/Tests/Fortran/maincxx.c new file mode 100644 index 0000000..d35ea7e --- /dev/null +++ b/Tests/Fortran/maincxx.c @@ -0,0 +1,6 @@ +extern int myc(void); +extern int mycxx(void); +int main() +{ + return myc() + mycxx(); +} |