summaryrefslogtreecommitdiffstats
path: root/Tests/Fortran/foo.c
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-10-29 14:58:40 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-10-29 14:58:40 (GMT)
commit84a4222314e8cb52781cb2b98dca4c69bb6cf739 (patch)
tree1b3dde4101bdfded6db3a6d500714416b51f6de2 /Tests/Fortran/foo.c
parent4eec7b2d03e0173deeb0f7ae29891eefb8ea9bb8 (diff)
downloadCMake-84a4222314e8cb52781cb2b98dca4c69bb6cf739.zip
CMake-84a4222314e8cb52781cb2b98dca4c69bb6cf739.tar.gz
CMake-84a4222314e8cb52781cb2b98dca4c69bb6cf739.tar.bz2
ENH: add test for FortranCInterface
Diffstat (limited to 'Tests/Fortran/foo.c')
-rw-r--r--Tests/Fortran/foo.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/Fortran/foo.c b/Tests/Fortran/foo.c
new file mode 100644
index 0000000..f03aec1
--- /dev/null
+++ b/Tests/Fortran/foo.c
@@ -0,0 +1,11 @@
+#include "foo.h"
+extern F_test_mod_sub();
+extern F_mysub();
+int main()
+{
+ F_mysub();
+ F_my_sub();
+#ifdef F_test_mod_sub
+ F_test_mod_sub();
+#endif
+}