CMake/Tests/Fortran
Brad King 80f0201b37 Rewrite FortranCInterface module
This is a new FortranCInterface.cmake module to replace the previous
prototype.  All module support files lie in a FortranCInterface
directory next to it.

This module uses a new approach to detect Fortran symbol mangling.  We
build a single test project which defines symbols in a Fortran library
(one per object-file) and calls them from a Fortran executable.  The
executable links to a C library which defines symbols encoding all known
manglings (one per object-file).  The C library falls back to the
Fortran library for symbols it cannot provide.  Therefore the executable
will always link, but prefers the C-implemented symbols when they match.
These symbols store string literals of the form INFO:symbol[<name>] so
we can parse them out of the executable.

This module also provides a simpler interface.  It always detects the
mangling as soon as it is included.  A single macro is provided to
generate mangling macros and optionally pre-mangled symbols.
2009-08-05 13:40:29 -04:00
..
Executable ENH: Implemented Fortran module output directory and search path flags. 2007-12-30 16:11:38 -05:00
External ENH: Add tests of Fortran module dependencies across directories and on external modules. Tests based on cases provided by Maik in issue #5809. 2007-12-28 11:50:29 -05:00
Library ENH: Implemented Fortran module output directory and search path flags. 2007-12-30 16:11:38 -05:00
in_interface ENH: Added test for 'use' keyword in a comment. Patch from Maik Beckmann. See bug#5809. 2007-10-10 09:09:09 -04:00
include ENH: Test included header in Fortran preprocessing 2009-02-24 14:32:31 -05:00
CMakeLists.txt Rewrite FortranCInterface module 2009-08-05 13:40:29 -04:00
foo.f ENH: add test for FortranCInterface 2008-10-29 10:58:40 -04:00
hello.f ENH: initial fortran 2004-08-06 15:05:00 -04:00
mainc.c Test C, C++, Fortran interface combinations 2009-08-04 14:06:45 -04:00
maincxx.c Test C, C++, Fortran interface combinations 2009-08-04 14:06:45 -04:00
myc.c Rewrite FortranCInterface module 2009-08-05 13:40:29 -04:00
mycxx.cxx Test C, C++, Fortran interface combinations 2009-08-04 14:06:45 -04:00
mysub.f ENH: Require language libs in Fortran/C test 2009-07-27 11:56:09 -04:00
test_module_implementation.f90 ENH: Added Fortran 90 test if the platform supports it. 2005-02-15 09:01:14 -05:00
test_module_interface.f90 ENH: Added Fortran 90 test if the platform supports it. 2005-02-15 09:01:14 -05:00
test_module_main.f90 ENH: Added Fortran 90 test if the platform supports it. 2005-02-15 09:01:14 -05:00
test_preprocess.F90 ENH: Test included header in Fortran preprocessing 2009-02-24 14:32:31 -05:00
test_use_in_comment_fixedform.f BUG: Fix Fortran test to use more portable comment syntax in fixed format source. 2008-03-28 14:04:52 -04:00
test_use_in_comment_freeform.f90 ENH: Added test for 'use' keyword in a comment. Patch from Maik Beckmann. See bug#5809. 2007-10-10 09:09:09 -04:00