diff options
author | Brad King <brad.king@kitware.com> | 2009-07-27 16:43:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-07-27 16:43:42 (GMT) |
commit | 2b849a77a6e108100cae8d1ae59be2a7727a66ec (patch) | |
tree | 75304fec96220ca657523ca12377099ab4ece647 /Tests/Fortran/foo.c | |
parent | 1c98cdf2243313932eec329efcad5180591e177b (diff) | |
download | CMake-2b849a77a6e108100cae8d1ae59be2a7727a66ec.zip CMake-2b849a77a6e108100cae8d1ae59be2a7727a66ec.tar.gz CMake-2b849a77a6e108100cae8d1ae59be2a7727a66ec.tar.bz2 |
ENH: Test Fortran and C++ in one executable
This extends the Fortran-to-C interface test to add a C++ source file.
The executable can only link with the C++ linker and with the proper
Fortran runtime libraries. These libraries should be detected by CMake
automatically, so this tests verifies the detection functionality.
Diffstat (limited to 'Tests/Fortran/foo.c')
-rw-r--r-- | Tests/Fortran/foo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/Fortran/foo.c b/Tests/Fortran/foo.c index f03aec1..7837534 100644 --- a/Tests/Fortran/foo.c +++ b/Tests/Fortran/foo.c @@ -1,7 +1,7 @@ #include "foo.h" extern F_test_mod_sub(); extern F_mysub(); -int main() +int foo() { F_mysub(); F_my_sub(); |