[cmake-commits] king committed CMakeLists.txt 1.7 1.8 test_use_in_comment_fixedform.f NONE 1.1 test_use_in_comment_freeform.f90 NONE 1.1

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Oct 10 09:09:11 EDT 2007


Update of /cvsroot/CMake/CMake/Tests/Fortran
In directory public:/mounts/ram/cvs-serv3639

Modified Files:
	CMakeLists.txt 
Added Files:
	test_use_in_comment_fixedform.f 
	test_use_in_comment_freeform.f90 
Log Message:
ENH: Added test for 'use' keyword in a comment.  Patch from Maik Beckmann.  See bug#5809.


Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Fortran/CMakeLists.txt,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- CMakeLists.txt	6 Apr 2005 19:06:08 -0000	1.7
+++ CMakeLists.txt	10 Oct 2007 13:09:09 -0000	1.8
@@ -12,4 +12,14 @@
     test_module_main.f90
     test_module_implementation.f90
     test_module_interface.f90)
+
+  ADD_EXECUTABLE(test_use_in_comment_fixedform
+    test_use_in_comment_fixedform.f)
+  ADD_EXECUTABLE(test_use_in_comment_freeform 
+    test_use_in_comment_freeform.f90)
+
+  ADD_EXECUTABLE(test_in_interface 
+    in_interface/main.f90
+    in_interface/module.f90)
+
 ENDIF(CMAKE_Fortran_COMPILER_SUPPORTS_F90)

--- NEW FILE: test_use_in_comment_fixedform.f ---
      PROGRAM foo
C     USE bar       
C     use bar       
C     Use bar       

      WRITE(*,*) 'Hello, Fortran world.'
      END PROGRAM

--- NEW FILE: test_use_in_comment_freeform.f90 ---
PROGRAM foo
! USE bar       
! use bar       
! Use bar       

    WRITE(*,*) 'Hello, Fortran world.'
END PROGRAM



More information about the Cmake-commits mailing list