Commit d69b1e8f by Tobias Burnus Committed by Tobias Burnus

kind_tests_2.f03: Add cleanup-modules.

2007-08-17  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/kind_tests_2.f03: Add cleanup-modules.
        * gfortran.dg/kind_tests_3.f03: Ditto.
        * gfortran.dg/global_vars_f90_init.f90: Ditto.
        * gfortran.dg/interface_13.f90: Ditto.
        * gfortran.dg/pr32738.f90: Ditto.
        * gfortran.dg/module_private_1.f90: Ditto.
        * gfortran.dg/test_only_clause.f90: Ditto.
        * gfortran.dg/bind_c_vars.f90: Ditto.
        * gfortran.dg/bind_c_dts.f90: Ditto.
        * gfortran.dg/use_9.f90: Ditto.
        * gfortran.dg/generic_8.f90: Ditto.
        * gfortran.dg/bind_c_implicit_vars.f03: Ditto.
        * gfortran.dg/private_type_6.f90: Ditto.
        * gfortran.dg/c_assoc.f90: Ditto.
        * gfortran.dg/private_type_7.f90: Ditto.
        * gfortran.dg/global_vars_c_init.f90: Ditto.
        * gfortran.dg/bind_c_dts_2.f03: Ditto.
        * gfortran.dg/c_f_pointer_tests.f90: Ditto.
        * gfortran.dg/c_size_t_test.f03: Ditto.
        * gfortran.dg/used_types_12.f90: Ditto.
        * gfortran.dg/pr25923.f90: Ditto.
        * gfortran.dg/test_com_block.f90: Ditto.
        * gfortran.dg/iso_c_binding_rename_1.f03: Ditto.
        * gfortran.dg/equiv_constraint_7.f90: Ditto.
        * gfortran.dg/com_block_driver.f90: Ditto.
        * gfortran.dg/iso_c_binding_rename_2.f03: Ditto.
        * gfortran.dg/use_iso_c_binding.f90: Ditto.
        * gfortran.dg/c_loc_test.f90: Ditto.
        * gfortran.dg/c_ptr_tests.f03: Ditto.
        * gfortran.dg/module_interface_1.f90: Ditto.

From-SVN: r127582
parent 968fc32d
2007-08-17 Tobias Burnus <burnus@net-b.de>
* gfortran.dg/kind_tests_2.f03: Add cleanup-modules.
* gfortran.dg/kind_tests_3.f03: Ditto.
* gfortran.dg/global_vars_f90_init.f90: Ditto.
* gfortran.dg/interface_13.f90: Ditto.
* gfortran.dg/pr32738.f90: Ditto.
* gfortran.dg/module_private_1.f90: Ditto.
* gfortran.dg/test_only_clause.f90: Ditto.
* gfortran.dg/bind_c_vars.f90: Ditto.
* gfortran.dg/bind_c_dts.f90: Ditto.
* gfortran.dg/use_9.f90: Ditto.
* gfortran.dg/generic_8.f90: Ditto.
* gfortran.dg/bind_c_implicit_vars.f03: Ditto.
* gfortran.dg/private_type_6.f90: Ditto.
* gfortran.dg/c_assoc.f90: Ditto.
* gfortran.dg/private_type_7.f90: Ditto.
* gfortran.dg/global_vars_c_init.f90: Ditto.
* gfortran.dg/bind_c_dts_2.f03: Ditto.
* gfortran.dg/c_f_pointer_tests.f90: Ditto.
* gfortran.dg/c_size_t_test.f03: Ditto.
* gfortran.dg/used_types_12.f90: Ditto.
* gfortran.dg/pr25923.f90: Ditto.
* gfortran.dg/test_com_block.f90: Ditto.
* gfortran.dg/iso_c_binding_rename_1.f03: Ditto.
* gfortran.dg/equiv_constraint_7.f90: Ditto.
* gfortran.dg/com_block_driver.f90: Ditto.
* gfortran.dg/iso_c_binding_rename_2.f03: Ditto.
* gfortran.dg/use_iso_c_binding.f90: Ditto.
* gfortran.dg/c_loc_test.f90: Ditto.
* gfortran.dg/c_ptr_tests.f03: Ditto.
* gfortran.dg/module_interface_1.f90: Ditto.
2007-08-17 Paolo Carlini <pcarlini@suse.de> 2007-08-17 Paolo Carlini <pcarlini@suse.de>
PR c++/32870 PR c++/32870
...@@ -39,3 +39,5 @@ contains ...@@ -39,3 +39,5 @@ contains
myDerived%s = myDerived%s + 1.0; myDerived%s = myDerived%s + 1.0;
end subroutine types_test end subroutine types_test
end module bind_c_dts end module bind_c_dts
! { dg-final { cleanup-modules "bind_c_dts" } }
...@@ -59,3 +59,5 @@ contains ...@@ -59,3 +59,5 @@ contains
end if end if
end subroutine sub0 end subroutine sub0
end module bind_c_dts_2 end module bind_c_dts_2
! { dg-final { cleanup-modules "bind_c_dts_2" } }
...@@ -8,3 +8,5 @@ contains ...@@ -8,3 +8,5 @@ contains
i = 0 i = 0
end subroutine sub0 end subroutine sub0
end module bind_c_implicit_vars end module bind_c_implicit_vars
! { dg-final { cleanup-modules "bind_c_implicit_vars" } }
...@@ -36,3 +36,5 @@ contains ...@@ -36,3 +36,5 @@ contains
end subroutine changeF90Globals end subroutine changeF90Globals
end module bind_c_vars end module bind_c_vars
! { dg-final { cleanup-modules "bind_c_vars" } }
...@@ -66,3 +66,5 @@ contains ...@@ -66,3 +66,5 @@ contains
end subroutine verify_assoc end subroutine verify_assoc
end module c_assoc end module c_assoc
! { dg-final { cleanup-modules "c_assoc" } }
...@@ -66,3 +66,5 @@ module c_f_pointer_tests ...@@ -66,3 +66,5 @@ module c_f_pointer_tests
endif endif
end subroutine testDerivedPtrs end subroutine testDerivedPtrs
end module c_f_pointer_tests end module c_f_pointer_tests
! { dg-final { cleanup-modules "c_f_pointer_tests" } }
...@@ -21,4 +21,4 @@ contains ...@@ -21,4 +21,4 @@ contains
call test_address(my_c_ptr, 100) call test_address(my_c_ptr, 100)
end subroutine test0 end subroutine test0
end module c_loc_test end module c_loc_test
! { dg-final { cleanup-modules "c_loc_test.mod" } } ! { dg-final { cleanup-modules "c_loc_test" } }
...@@ -42,3 +42,5 @@ module c_ptr_tests ...@@ -42,3 +42,5 @@ module c_ptr_tests
call c_f_pointer(self%myServices, localServices) call c_f_pointer(self%myServices, localServices)
end subroutine sub0 end subroutine sub0
end module c_ptr_tests end module c_ptr_tests
! { dg-final { cleanup-modules "c_ptr_tests" } }
...@@ -14,3 +14,5 @@ contains ...@@ -14,3 +14,5 @@ contains
end if end if
end subroutine sub0 end subroutine sub0
end module c_size_t_test end module c_size_t_test
! { dg-final { cleanup-modules "c_size_t_test" } }
...@@ -32,3 +32,5 @@ program comBlockDriver ...@@ -32,3 +32,5 @@ program comBlockDriver
call testTypes() call testTypes()
end program comBlockDriver end program comBlockDriver
! { dg-final { cleanup-modules "mycommodule comblocktests" } }
...@@ -9,3 +9,4 @@ ...@@ -9,3 +9,4 @@
EQUIVALENCE(I,J) EQUIVALENCE(I,J)
END MODULE DATA END MODULE DATA
END END
! { dg-final { cleanup-modules "data" } }
...@@ -28,4 +28,4 @@ CONTAINS ...@@ -28,4 +28,4 @@ CONTAINS
CALL A(MAXVAL(X),Y) CALL A(MAXVAL(X),Y)
END SUBROUTINE T END SUBROUTINE T
END MODULE M END MODULE M
! { dg-final { cleanup-modules "M" } } ! { dg-final { cleanup-modules "m" } }
...@@ -15,4 +15,4 @@ contains ...@@ -15,4 +15,4 @@ contains
end subroutine test_globals end subroutine test_globals
end module global_vars_c_init end module global_vars_c_init
! { dg-final { cleanup-modules "global_vars_c_init" } }
...@@ -15,4 +15,4 @@ contains ...@@ -15,4 +15,4 @@ contains
end subroutine test_globals end subroutine test_globals
end module global_vars_f90_init end module global_vars_f90_init
! { dg-final { cleanup-modules "global_vars_f90_init" } }
...@@ -28,4 +28,6 @@ ...@@ -28,4 +28,6 @@
data_i4(1)=0 data_i4(1)=0
data_r8(1)=0 data_r8(1)=0
end subroutine my_sio_file_read_common end subroutine my_sio_file_read_common
end module files_module end module files_module
\ No newline at end of file
! { dg-final { cleanup-modules "files_module" } }
...@@ -81,3 +81,4 @@ contains ...@@ -81,3 +81,4 @@ contains
end subroutine sub4 end subroutine sub4
end module iso_c_binding_rename_1 end module iso_c_binding_rename_1
! { dg-final { cleanup-modules "iso_c_binding_rename_0 iso_c_binding_rename_1" } }
...@@ -38,3 +38,5 @@ contains ...@@ -38,3 +38,5 @@ contains
end subroutine sub4 end subroutine sub4
end module mod2 end module mod2
! { dg-final { cleanup-modules "mod0 mod1 mod2" } }
...@@ -5,3 +5,5 @@ module kind_tests_2 ...@@ -5,3 +5,5 @@ module kind_tests_2
integer, parameter :: myFKind = c_float integer, parameter :: myFKind = c_float
real(myFKind), bind(c) :: myF real(myFKind), bind(c) :: myF
end module kind_tests_2 end module kind_tests_2
! { dg-final { cleanup-modules "kind_tests_2" } }
...@@ -8,3 +8,5 @@ module my_module ...@@ -8,3 +8,5 @@ module my_module
use my_kinds use my_kinds
real(myFKind), bind(c) :: myF real(myFKind), bind(c) :: myF
end module my_module end module my_module
! { dg-final { cleanup-modules "my_kinds my_module" } }
...@@ -35,4 +35,4 @@ ...@@ -35,4 +35,4 @@
end subroutine Selection_Sort end subroutine Selection_Sort
end program module_interface end program module_interface
! { dg-final { cleanup-modules "Max_Loc_mod" } } ! { dg-final { cleanup-modules "max_loc_mod" } }
...@@ -18,3 +18,5 @@ program main ...@@ -18,3 +18,5 @@ program main
j = 1 j = 1
print *, i, j print *, i, j
end program main end program main
! { dg-final { cleanup-modules "bar foo" } }
...@@ -22,3 +22,5 @@ contains ...@@ -22,3 +22,5 @@ contains
end function baz end function baz
end module foo end module foo
! { dg-final { cleanup-modules "foo" } }
...@@ -42,3 +42,5 @@ program example ...@@ -42,3 +42,5 @@ program example
implicit none implicit none
print *, tree_size(1) print *, tree_size(1)
end program example end program example
! { dg-final { cleanup-modules "cluster_definition cluster_tree" } }
...@@ -22,4 +22,4 @@ program foo_test ...@@ -22,4 +22,4 @@ program foo_test
foo2 = bartype(1,2) ! { dg-error "has PRIVATE components" } foo2 = bartype(1,2) ! { dg-error "has PRIVATE components" }
foo2%dummy2 = 5 ! { dg-error "is a PRIVATE component" } foo2%dummy2 = 5 ! { dg-error "is a PRIVATE component" }
end program foo_test end program foo_test
! { dg-final { cleanup-tree-dump "foomod" } } ! { dg-final { cleanup-modules "foomod" } }
...@@ -32,3 +32,4 @@ program testit ...@@ -32,3 +32,4 @@ program testit
k = foo(i) k = foo(i)
print *, "in the main:", k print *, "in the main:", k
end program testit end program testit
! { dg-final { cleanup-modules "gfcbug68" } }
...@@ -30,3 +30,5 @@ program testComBlock ...@@ -30,3 +30,5 @@ program testComBlock
call abort() call abort()
endif endif
end program testComBlock end program testComBlock
! { dg-final { cleanup-modules "nonf03comblock" } }
...@@ -18,3 +18,5 @@ module testOnlyClause ...@@ -18,3 +18,5 @@ module testOnlyClause
endif endif
end subroutine testOnly end subroutine testOnly
end module testOnlyClause end module testOnlyClause
! { dg-final { cleanup-modules "testonlyclause" } }
...@@ -13,3 +13,4 @@ end module test ...@@ -13,3 +13,4 @@ end module test
use test, only: operator(.func.) ! { dg-error "not found in module 'test'" } use test, only: operator(.func.) ! { dg-error "not found in module 'test'" }
end end
! { dg-final { cleanup-modules "test" } }
...@@ -47,3 +47,4 @@ module use_stmt_7 ...@@ -47,3 +47,4 @@ module use_stmt_7
use iso_c_binding, only: c_int, c_int use iso_c_binding, only: c_int, c_int
end module use_stmt_7 end module use_stmt_7
! { dg-final { cleanup-modules "use_stmt_2 use_stmt_3 use_stmt_4 use_stmt_5 use_stmt_6 use_stmt_7" } }
...@@ -26,5 +26,5 @@ PROGRAM MAIN ...@@ -26,5 +26,5 @@ PROGRAM MAIN
TYPE(T1) :: BAZ TYPE(T1) :: BAZ
BAZ = BAR BAZ = BAR
END END
! { dg-final { cleanup-modules "M" } } ! { dg-final { cleanup-modules "m" } }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment