diff options
author | Brad King <brad.king@kitware.com> | 2016-09-23 12:40:10 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-09-23 12:40:10 (GMT) |
commit | c60fe3307591a76d498b4eae7ab8d801c65a709d (patch) | |
tree | e07e8d98986cb74c2af5b0aab10a7032cf2eda29 /Tests/FortranModules/test_preprocess.F90 | |
parent | e9cae187c38ffef4da0b486980491d87e1d91507 (diff) | |
parent | eb8cd35684f2dc2f53d205d7738e1c01a12a493f (diff) | |
download | CMake-c60fe3307591a76d498b4eae7ab8d801c65a709d.zip CMake-c60fe3307591a76d498b4eae7ab8d801c65a709d.tar.gz CMake-c60fe3307591a76d498b4eae7ab8d801c65a709d.tar.bz2 |
Merge topic 'test-Fortran-split'
eb8cd356 Tests: Split Fortran module testing into separate FortranModules test
a41c8724 Tests: Check if Fortran compiler supports F90
1ec5097d Tests: Use more generic variables in Fortran test
d7bd2efb Tests: Remove trailing line from Fortran/External
Diffstat (limited to 'Tests/FortranModules/test_preprocess.F90')
-rw-r--r-- | Tests/FortranModules/test_preprocess.F90 | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/Tests/FortranModules/test_preprocess.F90 b/Tests/FortranModules/test_preprocess.F90 new file mode 100644 index 0000000..3a09976 --- /dev/null +++ b/Tests/FortranModules/test_preprocess.F90 @@ -0,0 +1,53 @@ +MODULE Available +! no conent +END MODULE + +PROGRAM PPTEST +! value of InPPFalseBranch ; values of SkipToEnd +! 0 <empty> +#ifndef FOO + ! 1 ; <0> + USE NotAvailable +# ifndef FOO + ! 2 ; <0,0> + USE NotAvailable +# else + ! 2 ; <0,0> + USE NotAvailable +# endif + ! 1 ; <0> +# ifdef FOO + ! 2 ; <0,1> + USE NotAvailable +# else + ! 2 ; <0,1> + USE NotAvailable +# endif + ! 1 ; <0> +#else + ! 0 ; <0> + USE Available +# ifndef FOO + ! 1 ; <0,0> + USE NotAvailable +# else + ! 0 ; <0,0> + USE Available +# endif + ! 0 ; <0> +# ifdef FOO + ! 0 ; <0,1> + USE Available +# else + ! 1 ; <0,1> + USE NotAvailable +# endif + ! 0 ; <0> +#endif +! 0 ; <empty> + +USE PPAvailable + +#include "test_preprocess.h" + +END PROGRAM |