diff options
author | brooks <brooks@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-26 20:14:51 +0000 |
---|---|---|
committer | brooks <brooks@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-26 20:14:51 +0000 |
commit | 58e5b01491082f4d861d5106df82689fcd344163 (patch) | |
tree | c91227151509d9e7fc9847ebc50fdd4001108b07 | |
parent | e4e0b8984a1c3467bb3b082955c6224e63d28f45 (diff) | |
download | gcc-58e5b01491082f4d861d5106df82689fcd344163.tar.gz |
* gfortran.dg/func_derived_4.f90: Fix module cleanup.
* gfortran.dg/gomp/appendix-a/a.22.4.f90: Clean up modules.
* gfortran.dg/gomp/appendix-a/a.26.2.f90: Likewise.
* gfortran.dg/gomp/appendix-a/a.32.1.f90: Likewise.
* gfortran.dg/overload_1.f90: Likewise.
* gfortran.dg/impure_assignment_1.f90: Likewise.
* gfortran.dg/error_recovery_3.f90: Likewise.
* gfortran.dg/alloc_comp_basics_1.f90: Likewise.
* gfortran.dg/sequence_types_1.f90: Likewise.
* gfortran.dg/internal_references_1.f90: Likewise.
* gfortran.dg/present_1.f90: Likewise.
* gfortran.dg/volatile10.f90: Likewise.
* gfortran.dg/module_equivalence_2.f90: Likewise.
* gfortran.dg/use_4.f90: Likewise.
* gfortran.dg/elemental_result_1.f90: Likewise.
* gfortran.dg/generic_actual_arg.f90: Likewise.
* gfortran.dg/private_type_5.f90: Likewise.
* gfortran.dg/protected_4.f90: Likewise.
* gfortran.dg/interface_3.f90: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123225 138bc75d-0d04-0410-961f-82ee72b054a4
20 files changed, 47 insertions, 11 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ca0767cadd0..d9fa3447051 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,25 @@ +2007-03-26 Brooks Moses <brooks.moses@codesourcery.com> + + * gfortran.dg/func_derived_4.f90: Fix module cleanup. + * gfortran.dg/gomp/appendix-a/a.22.4.f90: Clean up modules. + * gfortran.dg/gomp/appendix-a/a.26.2.f90: Likewise. + * gfortran.dg/gomp/appendix-a/a.32.1.f90: Likewise. + * gfortran.dg/overload_1.f90: Likewise. + * gfortran.dg/impure_assignment_1.f90: Likewise. + * gfortran.dg/error_recovery_3.f90: Likewise. + * gfortran.dg/alloc_comp_basics_1.f90: Likewise. + * gfortran.dg/sequence_types_1.f90: Likewise. + * gfortran.dg/internal_references_1.f90: Likewise. + * gfortran.dg/present_1.f90: Likewise. + * gfortran.dg/volatile10.f90: Likewise. + * gfortran.dg/module_equivalence_2.f90: Likewise. + * gfortran.dg/use_4.f90: Likewise. + * gfortran.dg/elemental_result_1.f90: Likewise. + * gfortran.dg/generic_actual_arg.f90: Likewise. + * gfortran.dg/private_type_5.f90: Likewise. + * gfortran.dg/protected_4.f90: Likewise. + * gfortran.dg/interface_3.f90: Likewise. + 2007-03-26 Uros Bizjak <ubizjak@gmail.com> * lib/gcc-dg.exp (gcc-dg-debug-runtest): Remove build file trivial.S. diff --git a/gcc/testsuite/gfortran.dg/alloc_comp_basics_1.f90 b/gcc/testsuite/gfortran.dg/alloc_comp_basics_1.f90 index 649c4a72252..a56282bd1c5 100644 --- a/gcc/testsuite/gfortran.dg/alloc_comp_basics_1.f90 +++ b/gcc/testsuite/gfortran.dg/alloc_comp_basics_1.f90 @@ -141,3 +141,4 @@ contains end program alloc ! { dg-final { scan-tree-dump-times "deallocate" 33 "original" } } ! { dg-final { cleanup-tree-dump "original" } } +! { dg-final { cleanup-modules "alloc_m" } } diff --git a/gcc/testsuite/gfortran.dg/elemental_result_1.f90 b/gcc/testsuite/gfortran.dg/elemental_result_1.f90 index c94e08e073f..2a6dee00c29 100644 --- a/gcc/testsuite/gfortran.dg/elemental_result_1.f90 +++ b/gcc/testsuite/gfortran.dg/elemental_result_1.f90 @@ -18,4 +18,4 @@ CONTAINS INTEGER, pointer :: MM ! { dg-error "conflicts with ELEMENTAL" } END FUNCTION MM END MODULE Test - +! { dg-final { cleanup-modules "Test" } } diff --git a/gcc/testsuite/gfortran.dg/error_recovery_3.f90 b/gcc/testsuite/gfortran.dg/error_recovery_3.f90 index d0ec20500d3..b1da9cbbab1 100644 --- a/gcc/testsuite/gfortran.dg/error_recovery_3.f90 +++ b/gcc/testsuite/gfortran.dg/error_recovery_3.f90 @@ -6,4 +6,6 @@ MODULE M1 INTEGER :: I END MODULE M1 -USE M1, ONLY: I,&! { dg-error "Missing" }
\ No newline at end of file +USE M1, ONLY: I,&! { dg-error "Missing" } +! { dg-final { cleanup-modules "M1" } } + diff --git a/gcc/testsuite/gfortran.dg/func_derived_4.f90 b/gcc/testsuite/gfortran.dg/func_derived_4.f90 index 86be8d4ead2..532d821deef 100644 --- a/gcc/testsuite/gfortran.dg/func_derived_4.f90 +++ b/gcc/testsuite/gfortran.dg/func_derived_4.f90 @@ -102,4 +102,4 @@ program test_pnt mshp => msh_(quality) end program test_pnt -! { dg-final { cleanup-modules "class_mesh class_scalar_field class_mesh" } } +! { dg-final { cleanup-modules "class_mesh class_field class_scalar_field" } } diff --git a/gcc/testsuite/gfortran.dg/generic_actual_arg.f90 b/gcc/testsuite/gfortran.dg/generic_actual_arg.f90 index 93a6588592f..9087a5d456b 100644 --- a/gcc/testsuite/gfortran.dg/generic_actual_arg.f90 +++ b/gcc/testsuite/gfortran.dg/generic_actual_arg.f90 @@ -22,4 +22,5 @@ CALL F(CALCULATION) ! { dg-error "GENERIC non-INTRINSIC procedure" } END SUBROUTINE F() -END SUBROUTINE
\ No newline at end of file +END SUBROUTINE +! { dg-final { cleanup-modules "TEST" } } diff --git a/gcc/testsuite/gfortran.dg/gomp/appendix-a/a.22.4.f90 b/gcc/testsuite/gfortran.dg/gomp/appendix-a/a.22.4.f90 index f769fc18f3e..2a637580ba7 100644 --- a/gcc/testsuite/gfortran.dg/gomp/appendix-a/a.22.4.f90 +++ b/gcc/testsuite/gfortran.dg/gomp/appendix-a/a.22.4.f90 @@ -9,3 +9,4 @@ !$OMP THREADPRIVATE(/T/) ! { dg-error "COMMON block" } !non-conforming because /T/ not declared in A22_4_WRONG END SUBROUTINE A22_4_WRONG +! { dg-final { cleanup-modules "A22_MODULE" } } diff --git a/gcc/testsuite/gfortran.dg/gomp/appendix-a/a.26.2.f90 b/gcc/testsuite/gfortran.dg/gomp/appendix-a/a.26.2.f90 index 97c14d945d1..3d43424b605 100644 --- a/gcc/testsuite/gfortran.dg/gomp/appendix-a/a.26.2.f90 +++ b/gcc/testsuite/gfortran.dg/gomp/appendix-a/a.26.2.f90 @@ -20,3 +20,4 @@ !$OMP END PARALLEL DO END SUBROUTINE F END MODULE A26_2 +! { dg-final { cleanup-modules "A26_2" } } diff --git a/gcc/testsuite/gfortran.dg/gomp/appendix-a/a.32.1.f90 b/gcc/testsuite/gfortran.dg/gomp/appendix-a/a.32.1.f90 index 8e0b5e093c5..498a6d324a6 100644 --- a/gcc/testsuite/gfortran.dg/gomp/appendix-a/a.32.1.f90 +++ b/gcc/testsuite/gfortran.dg/gomp/appendix-a/a.32.1.f90 @@ -22,3 +22,4 @@ ALLOCATE(WORK(SIZE)) WORK = TOL END SUBROUTINE BUILD +! { dg-final { cleanup-modules "M" } } diff --git a/gcc/testsuite/gfortran.dg/impure_assignment_1.f90 b/gcc/testsuite/gfortran.dg/impure_assignment_1.f90 index 772ba7567e8..f7362afd0fa 100644 --- a/gcc/testsuite/gfortran.dg/impure_assignment_1.f90 +++ b/gcc/testsuite/gfortran.dg/impure_assignment_1.f90 @@ -23,4 +23,6 @@ PURE SUBROUTINE S2(I,J) TYPE(T1), INTENT(IN) :: J I=J ! { dg-error "must be PURE" } END SUBROUTINE S2 -END
\ No newline at end of file +END +! { dg-final { cleanup-modules "M1" } } + diff --git a/gcc/testsuite/gfortran.dg/interface_3.f90 b/gcc/testsuite/gfortran.dg/interface_3.f90 index ecc7c4fa9e3..0a23fb09806 100644 --- a/gcc/testsuite/gfortran.dg/interface_3.f90 +++ b/gcc/testsuite/gfortran.dg/interface_3.f90 @@ -66,4 +66,4 @@ subroutine his_fun (a) print *, my_fun (a) ! { dg-error "ambiguous reference" } end subroutine his_fun -! { dg-final { cleanup-modules "test_mod" } } +! { dg-final { cleanup-modules "test_mod test_mod2" } } diff --git a/gcc/testsuite/gfortran.dg/internal_references_1.f90 b/gcc/testsuite/gfortran.dg/internal_references_1.f90 index 461fbfa92c9..73b9da67c64 100644 --- a/gcc/testsuite/gfortran.dg/internal_references_1.f90 +++ b/gcc/testsuite/gfortran.dg/internal_references_1.f90 @@ -33,4 +33,4 @@ contains bar = 1.0 end function bar end program test - +! { dg-final { cleanup-modules "m" } } diff --git a/gcc/testsuite/gfortran.dg/module_equivalence_2.f90 b/gcc/testsuite/gfortran.dg/module_equivalence_2.f90 index 3ec8efb41a4..f6a3c34039b 100644 --- a/gcc/testsuite/gfortran.dg/module_equivalence_2.f90 +++ b/gcc/testsuite/gfortran.dg/module_equivalence_2.f90 @@ -22,3 +22,4 @@ end module b reM = 0.57d1 if (M .ne. 0.57d1) call abort () end +! { dg-final { cleanup-modules "a b" } } diff --git a/gcc/testsuite/gfortran.dg/overload_1.f90 b/gcc/testsuite/gfortran.dg/overload_1.f90 index 97aa8433510..fc38a6c90fe 100644 --- a/gcc/testsuite/gfortran.dg/overload_1.f90 +++ b/gcc/testsuite/gfortran.dg/overload_1.f90 @@ -181,3 +181,4 @@ contains & abort end subroutine checku end program main +! { dg-final { cleanup-modules "m" } } diff --git a/gcc/testsuite/gfortran.dg/present_1.f90 b/gcc/testsuite/gfortran.dg/present_1.f90 index 96120399a19..6dee264fd93 100644 --- a/gcc/testsuite/gfortran.dg/present_1.f90 +++ b/gcc/testsuite/gfortran.dg/present_1.f90 @@ -17,4 +17,4 @@ END SUBROUTINE S1 END MODULE END - +! { dg-final { cleanup-modules "M1" } } diff --git a/gcc/testsuite/gfortran.dg/private_type_5.f90 b/gcc/testsuite/gfortran.dg/private_type_5.f90 index e62fe6e21c4..0fcf00e53a5 100644 --- a/gcc/testsuite/gfortran.dg/private_type_5.f90 +++ b/gcc/testsuite/gfortran.dg/private_type_5.f90 @@ -21,4 +21,5 @@ contains ir%i = i end subroutine init end subroutine sub -end module test
\ No newline at end of file +end module test +! { dg-final { cleanup-modules "test" } } diff --git a/gcc/testsuite/gfortran.dg/protected_4.f90 b/gcc/testsuite/gfortran.dg/protected_4.f90 index 7d2238e2ffd..181614230c9 100644 --- a/gcc/testsuite/gfortran.dg/protected_4.f90 +++ b/gcc/testsuite/gfortran.dg/protected_4.f90 @@ -55,4 +55,4 @@ module test protected :: test ! { dg-error "MODULE attribute conflicts with PROTECTED" } end module test -! { dg-final { cleanup-modules "protmod" } } +! { dg-final { cleanup-modules "protmod test" } } diff --git a/gcc/testsuite/gfortran.dg/sequence_types_1.f90 b/gcc/testsuite/gfortran.dg/sequence_types_1.f90 index 6c0bb247c87..62cd8fd6886 100644 --- a/gcc/testsuite/gfortran.dg/sequence_types_1.f90 +++ b/gcc/testsuite/gfortran.dg/sequence_types_1.f90 @@ -77,3 +77,4 @@ module data_types Integer(kindInt), dimension(:), pointer :: subset end type GroupDefLL end module data_types +! { dg-final { cleanup-modules "data_types" } } diff --git a/gcc/testsuite/gfortran.dg/use_4.f90 b/gcc/testsuite/gfortran.dg/use_4.f90 index 43d94bc223c..a765acecf6a 100644 --- a/gcc/testsuite/gfortran.dg/use_4.f90 +++ b/gcc/testsuite/gfortran.dg/use_4.f90 @@ -31,3 +31,4 @@ program test_foo use foo, only: i => foo! { dg-error "been used as an external module name" } use foo, only: foo => i! { dg-error "been used as an external module name" } end program +! { dg-final { cleanup-modules "foo bar test test2 test3" } } diff --git a/gcc/testsuite/gfortran.dg/volatile10.f90 b/gcc/testsuite/gfortran.dg/volatile10.f90 index 493abf739c2..2065b164cad 100644 --- a/gcc/testsuite/gfortran.dg/volatile10.f90 +++ b/gcc/testsuite/gfortran.dg/volatile10.f90 @@ -146,4 +146,4 @@ end program main ! TODO: dg-final { scan-tree-dump-not "main_test2_3" "optimized" } ! { dg-final { scan-tree-dump "main_test2_4" "optimized" } } ! { dg-final { cleanup-tree-dump "optimized" } } -! { dg-final { cleanup-modules "one two" } } +! { dg-final { cleanup-modules "impl one two" } } |