summaryrefslogtreecommitdiffstats
path: root/Tests/Fortran/mycxx.cxx
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/mycxx.cxx
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/mycxx.cxx')
-rw-r--r--Tests/Fortran/mycxx.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/Fortran/mycxx.cxx b/Tests/Fortran/mycxx.cxx
new file mode 100644
index 0000000..bf04062
--- /dev/null
+++ b/Tests/Fortran/mycxx.cxx
@@ -0,0 +1,6 @@
+extern "C" int myc(void);
+extern "C" int mycxx(void)
+{
+ delete new int;
+ return myc();
+}