Commit 0227f9b9 by Brooks Moses Committed by Brooks Moses

func_derived_4.f90: Fix module cleanup.

* 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.

From-SVN: r123225
parent 71175bf3
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> 2007-03-26 Uros Bizjak <ubizjak@gmail.com>
* lib/gcc-dg.exp (gcc-dg-debug-runtest): Remove build file trivial.S. * lib/gcc-dg.exp (gcc-dg-debug-runtest): Remove build file trivial.S.
...@@ -141,3 +141,4 @@ contains ...@@ -141,3 +141,4 @@ contains
end program alloc end program alloc
! { dg-final { scan-tree-dump-times "deallocate" 33 "original" } } ! { dg-final { scan-tree-dump-times "deallocate" 33 "original" } }
! { dg-final { cleanup-tree-dump "original" } } ! { dg-final { cleanup-tree-dump "original" } }
! { dg-final { cleanup-modules "alloc_m" } }
...@@ -18,4 +18,4 @@ CONTAINS ...@@ -18,4 +18,4 @@ CONTAINS
INTEGER, pointer :: MM ! { dg-error "conflicts with ELEMENTAL" } INTEGER, pointer :: MM ! { dg-error "conflicts with ELEMENTAL" }
END FUNCTION MM END FUNCTION MM
END MODULE Test END MODULE Test
! { dg-final { cleanup-modules "Test" } }
...@@ -6,4 +6,6 @@ MODULE M1 ...@@ -6,4 +6,6 @@ MODULE M1
INTEGER :: I INTEGER :: I
END MODULE M1 END MODULE M1
USE M1, ONLY: I,&! { dg-error "Missing" } USE M1, ONLY: I,&! { dg-error "Missing" }
\ No newline at end of file ! { dg-final { cleanup-modules "M1" } }
...@@ -102,4 +102,4 @@ program test_pnt ...@@ -102,4 +102,4 @@ program test_pnt
mshp => msh_(quality) mshp => msh_(quality)
end program test_pnt 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" } }
...@@ -22,4 +22,5 @@ CALL F(CALCULATION) ! { dg-error "GENERIC non-INTRINSIC procedure" } ...@@ -22,4 +22,5 @@ CALL F(CALCULATION) ! { dg-error "GENERIC non-INTRINSIC procedure" }
END END
SUBROUTINE F() SUBROUTINE F()
END SUBROUTINE END SUBROUTINE
\ No newline at end of file ! { dg-final { cleanup-modules "TEST" } }
...@@ -9,3 +9,4 @@ ...@@ -9,3 +9,4 @@
!$OMP THREADPRIVATE(/T/) ! { dg-error "COMMON block" } !$OMP THREADPRIVATE(/T/) ! { dg-error "COMMON block" }
!non-conforming because /T/ not declared in A22_4_WRONG !non-conforming because /T/ not declared in A22_4_WRONG
END SUBROUTINE A22_4_WRONG END SUBROUTINE A22_4_WRONG
! { dg-final { cleanup-modules "A22_MODULE" } }
...@@ -20,3 +20,4 @@ ...@@ -20,3 +20,4 @@
!$OMP END PARALLEL DO !$OMP END PARALLEL DO
END SUBROUTINE F END SUBROUTINE F
END MODULE A26_2 END MODULE A26_2
! { dg-final { cleanup-modules "A26_2" } }
...@@ -22,3 +22,4 @@ ...@@ -22,3 +22,4 @@
ALLOCATE(WORK(SIZE)) ALLOCATE(WORK(SIZE))
WORK = TOL WORK = TOL
END SUBROUTINE BUILD END SUBROUTINE BUILD
! { dg-final { cleanup-modules "M" } }
...@@ -23,4 +23,6 @@ PURE SUBROUTINE S2(I,J) ...@@ -23,4 +23,6 @@ PURE SUBROUTINE S2(I,J)
TYPE(T1), INTENT(IN) :: J TYPE(T1), INTENT(IN) :: J
I=J ! { dg-error "must be PURE" } I=J ! { dg-error "must be PURE" }
END SUBROUTINE S2 END SUBROUTINE S2
END END
\ No newline at end of file ! { dg-final { cleanup-modules "M1" } }
...@@ -66,4 +66,4 @@ subroutine his_fun (a) ...@@ -66,4 +66,4 @@ subroutine his_fun (a)
print *, my_fun (a) ! { dg-error "ambiguous reference" } print *, my_fun (a) ! { dg-error "ambiguous reference" }
end subroutine his_fun end subroutine his_fun
! { dg-final { cleanup-modules "test_mod" } } ! { dg-final { cleanup-modules "test_mod test_mod2" } }
...@@ -33,4 +33,4 @@ contains ...@@ -33,4 +33,4 @@ contains
bar = 1.0 bar = 1.0
end function bar end function bar
end program test end program test
! { dg-final { cleanup-modules "m" } }
...@@ -22,3 +22,4 @@ end module b ...@@ -22,3 +22,4 @@ end module b
reM = 0.57d1 reM = 0.57d1
if (M .ne. 0.57d1) call abort () if (M .ne. 0.57d1) call abort ()
end end
! { dg-final { cleanup-modules "a b" } }
...@@ -181,3 +181,4 @@ contains ...@@ -181,3 +181,4 @@ contains
& abort & abort
end subroutine checku end subroutine checku
end program main end program main
! { dg-final { cleanup-modules "m" } }
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
END SUBROUTINE S1 END SUBROUTINE S1
END MODULE END MODULE
END END
! { dg-final { cleanup-modules "M1" } }
...@@ -21,4 +21,5 @@ contains ...@@ -21,4 +21,5 @@ contains
ir%i = i ir%i = i
end subroutine init end subroutine init
end subroutine sub end subroutine sub
end module test end module test
\ No newline at end of file ! { dg-final { cleanup-modules "test" } }
...@@ -55,4 +55,4 @@ module test ...@@ -55,4 +55,4 @@ module test
protected :: test ! { dg-error "MODULE attribute conflicts with PROTECTED" } protected :: test ! { dg-error "MODULE attribute conflicts with PROTECTED" }
end module test end module test
! { dg-final { cleanup-modules "protmod" } } ! { dg-final { cleanup-modules "protmod test" } }
...@@ -77,3 +77,4 @@ module data_types ...@@ -77,3 +77,4 @@ module data_types
Integer(kindInt), dimension(:), pointer :: subset Integer(kindInt), dimension(:), pointer :: subset
end type GroupDefLL end type GroupDefLL
end module data_types end module data_types
! { dg-final { cleanup-modules "data_types" } }
...@@ -31,3 +31,4 @@ program test_foo ...@@ -31,3 +31,4 @@ program test_foo
use foo, only: i => foo! { dg-error "been used as an external module name" } 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" } use foo, only: foo => i! { dg-error "been used as an external module name" }
end program end program
! { dg-final { cleanup-modules "foo bar test test2 test3" } }
...@@ -146,4 +146,4 @@ end program main ...@@ -146,4 +146,4 @@ end program main
! TODO: dg-final { scan-tree-dump-not "main_test2_3" "optimized" } ! TODO: dg-final { scan-tree-dump-not "main_test2_3" "optimized" }
! { dg-final { scan-tree-dump "main_test2_4" "optimized" } } ! { dg-final { scan-tree-dump "main_test2_4" "optimized" } }
! { dg-final { cleanup-tree-dump "optimized" } } ! { dg-final { cleanup-tree-dump "optimized" } }
! { dg-final { cleanup-modules "one two" } } ! { dg-final { cleanup-modules "impl one two" } }
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