summaryrefslogtreecommitdiffstats
path: root/Tests/Fortran/maincxx.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-08-04 18:06:45 (GMT)
committerBrad King <brad.king@kitware.com>2009-08-04 18:06:45 (GMT)
commitf3cd1e06f5a5fb092f249de3e1b582125d067daa (patch)
tree8c6c96e9c6e4c3cd8adf40462fbc56a9b8307e4f /Tests/Fortran/maincxx.c
parent39e0e04416e487e553dab5bcecb86466c937fb53 (diff)
downloadCMake-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.c6
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();
+}