Commit b09940e9 by Janis Johnson Committed by Janis Johnson

gcc-dg.exp (cleanup-modules): New proc.

	* lib/gcc-dg.exp (cleanup-modules): New proc.
	* gfortran.dg/allocatable_function_1.f90,
	gfortran.dg/allocate_char_star_scalar_1.f90,
	gfortran.dg/assumed_charlen_function_1.f90,
	gfortran.dg/assumed_dummy_1.f90,
	gfortran.dg/assumed_shape_ranks_1.f90,
	gfortran.dg/assumed_shape_ranks_2.f90,
	gfortran.dg/assumed_size_dt_dummy.f90,
	gfortran.dg/auto_char_dummy_array_1.f90,
	gfortran.dg/auto_char_len_3.f90,
	gfortran.dg/automatic_module_variable.f90,
	gfortran.dg/bad_automatic_objects_1.f90,
	gfortran.dg/char_array_constructor.f90,
	gfortran.dg/char_array_structure_constructor.f90,
	gfortran.dg/char_result_11.f90, gfortran.dg/char_result_9.f90,
	gfortran.dg/contained_1.f90, gfortran.dg/convert_1.f90,
	gfortran.dg/cray_pointers_5.f90, gfortran.dg/data_constraints_1.f90,
	gfortran.dg/default_initialization.f90, gfortran.dg/der_charlen_1.f90,
	gfortran.dg/der_io_2.f90, gfortran.dg/der_io_3.f90,
	gfortran.dg/derived_pointer_recursion.f90,
	gfortran.dg/derived_recursion.f90, gfortran.dg/der_pointer_1.f90,
	gfortran.dg/der_pointer_3.f90, gfortran.dg/der_pointer_4.f90,
	gfortran.dg/dummy_functions_1.f90,
	gfortran.dg/elemental_initializer_1.f90,
	gfortran.dg/elemental_non_intrinsic_dummy_1.f90,
	gfortran.dg/elemental_pointer_1.f90,
	gfortran.dg/elemental_subroutine_1.f90,
	gfortran.dg/elemental_subroutine_2.f90, gfortran.dg/entry_1.f90,
	gfortran.dg/entry_3.f90, gfortran.dg/enum_10.f90,
	gfortran.dg/equiv_constraint_3.f90, gfortran.dg/func_derived_1.f90,
	gfortran.dg/func_derived_2.f90, gfortran.dg/func_derived_3.f90,
	gfortran.dg/generic_1.f90, gfortran.dg/generic_2.f90,
	gfortran.dg/generic_3.f90, gfortran.dg/generic_4.f90,
	gfortran.dg/global_references_1.f90,
	gfortran.dg/host_used_types_1.f90, gfortran.dg/implicit_1.f90,
	gfortran.dg/implicit_2.f90, gfortran.dg/implicit_actual.f90,
	gfortran.dg/initialization_1.f90, gfortran.dg/int_1.f90,
	gfortran.dg/intent_used_1.f90, gfortran.dg/interface_1.f90,
	gfortran.dg/interface_2.f90, gfortran.dg/internal_references_2.f90,
	gfortran.dg/io_constraints_1.f90, gfortran.dg/io_constraints_2.f90,
	gfortran.dg/large_integer_kind_1.f90,
	gfortran.dg/large_real_kind_1.f90,
	gfortran.dg/module_blank_common.f90, gfortran.dg/module_commons_1.f90,
	gfortran.dg/module_double_reuse.f90,
	gfortran.dg/module_equivalence_1.f90,
	gfortran.dg/module_interface_1.f90,
	gfortran.dg/module_parameter_array_refs_1.f90,
	gfortran.dg/named_interface.f90, gfortran.dg/namelist_14.f90,
	gfortran.dg/namelist_15.f90, gfortran.dg/namelist_1.f90,
	gfortran.dg/namelist_4.f90, gfortran.dg/namelist_use.f90,
	gfortran.dg/namelist_use_only.f90, gfortran.dg/nested_modules_1.f90,
	gfortran.dg/nested_modules_2.f90, gfortran.dg/nested_modules_3.f90,
	gfortran.dg/nested_modules_4.f90, gfortran.dg/nested_modules_5.f90,
	gfortran.dg/parens_5.f90, gfortran.dg/parent_result_ref_4.f90,
	gfortran.dg/pr15164.f90, gfortran.dg/pr16861.f90,
	gfortran.dg/pr17615.f90, gfortran.dg/pr19926.f90,
	gfortran.dg/pr21177.f90, gfortran.dg/pr26246_1.f90,
	gfortran.dg/private_type_1.f90, gfortran.dg/private_type_2.f90,
	gfortran.dg/private_type_3.f90, gfortran.dg/private_type_4.f90,
	gfortran.dg/procedure_lvalue.f90, gfortran.dg/pure_byref_3.f90,
	gfortran.dg/same_name_1.f90,
	gfortran.dg/sibling_dummy_procedure_1.f90,
	gfortran.dg/sibling_dummy_procedure_2.f90,
	gfortran.dg/sibling_dummy_procedure_3.f90,
	gfortran.dg/substr_1.f90, gfortran.dg/substring_equivalence.f90,
	gfortran.dg/use_allocated_1.f90, gfortran.dg/used_dummy_types_1.f90,
	gfortran.dg/used_dummy_types_2.f90,
	gfortran.dg/used_dummy_types_3.f90,
	gfortran.dg/used_dummy_types_4.f90,
	gfortran.dg/used_dummy_types_5.f90,
	gfortran.dg/used_interface_ref.f90, gfortran.dg/used_types_1.f90,
	gfortran.dg/userdef_operator_1.f90: Use it.

From-SVN: r112264
parent d9870b7e
2006-03-21 Janis Johnson <janis187@us.ibm.com>
* lib/gcc-dg.exp (cleanup-modules): New proc.
* gfortran.dg/allocatable_function_1.f90,
gfortran.dg/allocate_char_star_scalar_1.f90,
gfortran.dg/assumed_charlen_function_1.f90,
gfortran.dg/assumed_dummy_1.f90,
gfortran.dg/assumed_shape_ranks_1.f90,
gfortran.dg/assumed_shape_ranks_2.f90,
gfortran.dg/assumed_size_dt_dummy.f90,
gfortran.dg/auto_char_dummy_array_1.f90,
gfortran.dg/auto_char_len_3.f90,
gfortran.dg/automatic_module_variable.f90,
gfortran.dg/bad_automatic_objects_1.f90,
gfortran.dg/char_array_constructor.f90,
gfortran.dg/char_array_structure_constructor.f90,
gfortran.dg/char_result_11.f90, gfortran.dg/char_result_9.f90,
gfortran.dg/contained_1.f90, gfortran.dg/convert_1.f90,
gfortran.dg/cray_pointers_5.f90, gfortran.dg/data_constraints_1.f90,
gfortran.dg/default_initialization.f90, gfortran.dg/der_charlen_1.f90,
gfortran.dg/der_io_2.f90, gfortran.dg/der_io_3.f90,
gfortran.dg/derived_pointer_recursion.f90,
gfortran.dg/derived_recursion.f90, gfortran.dg/der_pointer_1.f90,
gfortran.dg/der_pointer_3.f90, gfortran.dg/der_pointer_4.f90,
gfortran.dg/dummy_functions_1.f90,
gfortran.dg/elemental_initializer_1.f90,
gfortran.dg/elemental_non_intrinsic_dummy_1.f90,
gfortran.dg/elemental_pointer_1.f90,
gfortran.dg/elemental_subroutine_1.f90,
gfortran.dg/elemental_subroutine_2.f90, gfortran.dg/entry_1.f90,
gfortran.dg/entry_3.f90, gfortran.dg/enum_10.f90,
gfortran.dg/equiv_constraint_3.f90, gfortran.dg/func_derived_1.f90,
gfortran.dg/func_derived_2.f90, gfortran.dg/func_derived_3.f90,
gfortran.dg/generic_1.f90, gfortran.dg/generic_2.f90,
gfortran.dg/generic_3.f90, gfortran.dg/generic_4.f90,
gfortran.dg/global_references_1.f90,
gfortran.dg/host_used_types_1.f90, gfortran.dg/implicit_1.f90,
gfortran.dg/implicit_2.f90, gfortran.dg/implicit_actual.f90,
gfortran.dg/initialization_1.f90, gfortran.dg/int_1.f90,
gfortran.dg/intent_used_1.f90, gfortran.dg/interface_1.f90,
gfortran.dg/interface_2.f90, gfortran.dg/internal_references_2.f90,
gfortran.dg/io_constraints_1.f90, gfortran.dg/io_constraints_2.f90,
gfortran.dg/large_integer_kind_1.f90,
gfortran.dg/large_real_kind_1.f90,
gfortran.dg/module_blank_common.f90, gfortran.dg/module_commons_1.f90,
gfortran.dg/module_double_reuse.f90,
gfortran.dg/module_equivalence_1.f90,
gfortran.dg/module_interface_1.f90,
gfortran.dg/module_parameter_array_refs_1.f90,
gfortran.dg/named_interface.f90, gfortran.dg/namelist_14.f90,
gfortran.dg/namelist_15.f90, gfortran.dg/namelist_1.f90,
gfortran.dg/namelist_4.f90, gfortran.dg/namelist_use.f90,
gfortran.dg/namelist_use_only.f90, gfortran.dg/nested_modules_1.f90,
gfortran.dg/nested_modules_2.f90, gfortran.dg/nested_modules_3.f90,
gfortran.dg/nested_modules_4.f90, gfortran.dg/nested_modules_5.f90,
gfortran.dg/parens_5.f90, gfortran.dg/parent_result_ref_4.f90,
gfortran.dg/pr15164.f90, gfortran.dg/pr16861.f90,
gfortran.dg/pr17615.f90, gfortran.dg/pr19926.f90,
gfortran.dg/pr21177.f90, gfortran.dg/pr26246_1.f90,
gfortran.dg/private_type_1.f90, gfortran.dg/private_type_2.f90,
gfortran.dg/private_type_3.f90, gfortran.dg/private_type_4.f90,
gfortran.dg/procedure_lvalue.f90, gfortran.dg/pure_byref_3.f90,
gfortran.dg/same_name_1.f90,
gfortran.dg/sibling_dummy_procedure_1.f90,
gfortran.dg/sibling_dummy_procedure_2.f90,
gfortran.dg/sibling_dummy_procedure_3.f90,
gfortran.dg/substr_1.f90, gfortran.dg/substring_equivalence.f90,
gfortran.dg/use_allocated_1.f90, gfortran.dg/used_dummy_types_1.f90,
gfortran.dg/used_dummy_types_2.f90,
gfortran.dg/used_dummy_types_3.f90,
gfortran.dg/used_dummy_types_4.f90,
gfortran.dg/used_dummy_types_5.f90,
gfortran.dg/used_interface_ref.f90, gfortran.dg/used_types_1.f90,
gfortran.dg/userdef_operator_1.f90: Use it.
2006-03-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gfortran.dg/advance.f90, gfortran.dg/backspace_2.f,
......@@ -109,4 +109,4 @@ contains
end program alloc_fun
! { dg-final { scan-tree-dump-times "free" 9 "original" } }
! { dg-final { cleanup-tree-dump "original" } }
! { dg-final { cleanup-modules "m" } }
......@@ -29,3 +29,5 @@ program hum
call foo(q)
end program hum
! { dg-final { cleanup-modules "moo" } }
......@@ -81,3 +81,4 @@ end function not_OK
END
! { dg-final { cleanup-modules "M1 INTEGER_SETS" } }
......@@ -43,4 +43,4 @@ contains
END SUBROUTINE roo
end program test
! { dg-final { cleanup-modules "global" } }
......@@ -23,3 +23,4 @@ CONTAINS
END SUBROUTINE TST
END
! { dg-final { cleanup-modules "addon" } }
......@@ -43,3 +43,5 @@ end module mod1
call foo (bar, i)
if (i .ne. 2) call abort ()
end
! { dg-final { cleanup-modules "mod1" } }
......@@ -15,3 +15,4 @@ END MODULE TEST
end
! { dg-final { cleanup-modules "TEST" } }
......@@ -54,3 +54,4 @@ contains
end program oh_no_not_pr15908_again
! { dg-final { cleanup-modules "global" } }
......@@ -23,3 +23,5 @@ program TestStringTools
if (txt .ne. "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz") &
call abort ()
end program TestStringTools
! { dg-final { cleanup-modules "chtest" } }
......@@ -14,3 +14,5 @@ contains
init = x
end function init
end module sd
! { dg-final { cleanup-modules "sd" } }
......@@ -18,3 +18,5 @@ program foobar
integer, dimension (i) :: k ! { dg-error "must have constant shape" }
character (len = i) :: c2 ! { dg-error "must have constant character length" }
end program foobar
! { dg-final { cleanup-modules "foo bar" } }
......@@ -13,3 +13,4 @@ program y
if (b(2) /= 'efghij') call abort
end program y
! { dg-final { cleanup-modules "z" } }
......@@ -26,3 +26,5 @@ contains
ENDDO
end subroutine alloc
END program char_array_structure_constructor
! { dg-final { cleanup-modules "global" } }
......@@ -113,3 +113,5 @@ program test
print *, str
end program test
! { dg-final { cleanup-modules "cutils" } }
......@@ -22,3 +22,5 @@ program huj
s = s_to_c(c)
end program huj
! { dg-final { cleanup-modules "foo" } }
......@@ -31,3 +31,5 @@ program contained_1
call a
if (i .ne. 1) call abort
end program
! { dg-final { cleanup-modules "contained_1_mod" } }
......@@ -14,3 +14,5 @@ USE MODULE_A
USE MODULE_B
a = 0
END
! { dg-final { cleanup-modules "MODULE_A MODULE_B" } }
......@@ -13,3 +13,5 @@ end module cray_pointers_5
ipt = loc (arr)
if (any (var .ne. (/1, 2, 3, 4, 5, 6, 7, 8, 9, 10/))) call abort
end
! { dg-final { cleanup-modules "cray_pointers_5" } }
......@@ -28,3 +28,5 @@ contains
data foobar /0/ ! { dg-error "conflicts with FUNCTION" }
end function foobar
end
! { dg-final { cleanup-modules "global" } }
......@@ -16,3 +16,5 @@ module bad
end type default_initialization
type (default_initialization) t ! { dg-error "default initialization" }
end module bad
! { dg-final { cleanup-modules "bad" } }
......@@ -22,3 +22,5 @@ CONTAINS
type(T), intent(in) :: X
end subroutine
end module another_core
! { dg-final { cleanup-modules "core another_core" } }
......@@ -52,4 +52,4 @@ program prog
write (*, *) zb
end program prog
! { dg-final { cleanup-modules "gfortran2" } }
......@@ -38,3 +38,5 @@ end module m2
use m2
call test
end
! { dg-final { cleanup-modules "m1 m2" } }
......@@ -16,3 +16,5 @@ module test
type(x_t), pointer :: x
end module test
! { dg-final { cleanup-modules "test" } }
......@@ -16,3 +16,5 @@ end module ints
program size_test
use ints
end program size_test
! { dg-final { cleanup-modules "ints" } }
......@@ -9,3 +9,5 @@ module crash
end type foo
type (foo), save :: bar
end module crash
! { dg-final { cleanup-modules "crash" } }
......@@ -20,3 +20,4 @@
! copyright 1996 Loren P. Meissner -- May be distributed if this line is included.
! Linked List operations with Pointer to Pointer
! { dg-final { cleanup-modules "llo" } }
......@@ -22,3 +22,5 @@ end module snafu
! use snafu
! foo%v = 1
! end
! { dg-final { cleanup-modules "snafu" } }
......@@ -34,3 +34,5 @@ program test
use innerfun
call foo(3,f)
end program test
! { dg-final { cleanup-modules "innerfun outerfun" } }
......@@ -31,3 +31,5 @@ contains
end function len_
end module iso_varying_string
! { dg-final { cleanup-modules "iso_varying_string" } }
......@@ -19,3 +19,5 @@ INTEGER FUNCTION SUB(XX)
INTEGER :: XX
SUB=XX()
END
! { dg-final { cleanup-modules "TT" } }
......@@ -9,3 +9,5 @@ CONTAINS
POINTER :: LL ! { dg-error " POINTER attribute conflicts with ELEMENTAL attribute" }
END FUNCTION LL
END MODULE Test
! { dg-final { cleanup-modules "Test" } }
......@@ -55,4 +55,6 @@ contains
real, intent(out) :: b
b = -a
end subroutine foobar
end
\ No newline at end of file
end
! { dg-final { cleanup-modules "pr22146" } }
......@@ -61,4 +61,6 @@ program test_assign
end forall
if (any(reshape (i, (/4/)).ne.(/1,8,27,64/))) call abort ()
end program test_assign
\ No newline at end of file
end program test_assign
! { dg-final { cleanup-modules "type assign" } }
......@@ -43,3 +43,5 @@ program p
call test1 ()
call test2 ()
end program
! { dg-final { cleanup-modules "m" } }
......@@ -23,3 +23,5 @@ program entry_4_prog
call bar(a)
if (any (a .ne. (/3, 4/))) call abort
end program
! { dg-final { cleanup-modules "entry_4" } }
......@@ -59,3 +59,5 @@ call f4 (one4, 1)
call f4 (two4, 2)
call f4 (max4, huge(1_4)+0)
end
! { dg-final { cleanup-modules "enum_10" } }
......@@ -10,4 +10,4 @@ INTEGER :: L
EQUIVALENCE(K,L) ! { dg-error "conflicts with USE ASSOCIATED attribute" }
END
! { dg-final { cleanup-modules "TEST" } }
......@@ -36,3 +36,5 @@ function f(i,x,c,arr)
end function f
end
! { dg-final { cleanup-modules "m" } }
......@@ -39,4 +39,4 @@ program func_derived_2
if (y%i.ne.112) call abort ()
end program func_derived_2
! { dg-final { cleanup-modules "mpoint" } }
......@@ -123,3 +123,5 @@ end module func_derived_3a
if (trim (line).ne."simple = 1") call abort ()
close (10)
end program
! { dg-final { cleanup-modules "func_derived_3 func_derived_3a" } }
......@@ -17,3 +17,5 @@ end module
subroutine BAZ(X)
use FOO
end subroutine
! { dg-final { cleanup-modules "FOO" } }
......@@ -18,3 +18,5 @@ end module bidon
integer,intent(in) :: nspden
end subroutine nonlinear
! { dg-final { cleanup-modules "bidon" } }
......@@ -28,3 +28,5 @@ subroutine mrqcof( x, y, sig, ndata, a, ia, ma )
call gauss( x(i), a, yan, dyda, ma )
end do
end subroutine mrqcof
! { dg-final { cleanup-modules "fit_functions" } }
......@@ -26,3 +26,5 @@ y = (/1,2,3/)
call baz(y,z)
if (any (y /= z)) call abort ()
end
! { dg-final { cleanup-modules "FOO" } }
......@@ -96,3 +96,5 @@ END SUBROUTINE j
entry link2 (nameg) ! { dg-error "is already being used as a SUBROUTINE" }
return
end
! { dg-final { cleanup-modules "m" } }
......@@ -37,4 +37,6 @@ contains
end if
end subroutine SetTimeSteps
end module ThermoData
\ No newline at end of file
end module ThermoData
! { dg-final { cleanup-modules "ModelParams ThermoData" } }
......@@ -9,3 +9,4 @@ implicit none
common/rommel/aaa ! { dg-error "no IMPLICIT type" "no IMPLICIT type" }
end
! { dg-final { cleanup-modules "AHFinder_dat" } }
......@@ -46,3 +46,5 @@ subroutine bar()
v%i = 42
end subroutine
end module
! { dg-final { cleanup-modules "implicit_2" } }
......@@ -32,3 +32,4 @@ contains
end subroutine foo
end program snafu
! { dg-final { cleanup-modules "global" } }
......@@ -34,3 +34,5 @@ contains
end subroutine foo
end module const
! { dg-final { cleanup-modules "const" } }
......@@ -170,3 +170,5 @@ program test_int
if (i4 /= 17_ik4 .or. i8 /= 17_ik8) call abort
end program test_int
! { dg-final { cleanup-modules "mykinds" } }
......@@ -15,3 +15,5 @@ MODULE global
END SUBROUTINE foo
END INTERFACE
END MODULE global
! { dg-final { cleanup-modules "global" } }
......@@ -38,3 +38,5 @@ module z
end function
end module z
! { dg-final { cleanup-modules "y z" } }
......@@ -27,3 +27,5 @@ CONTAINS
END FUNCTION Compare_Float_Single
END MODULE Compare_Float_Numbers
! { dg-final { cleanup-modules "Compare_Float_Numbers" } }
......@@ -17,4 +17,6 @@ contains
subroutine sub(a) ! Would give an error on "already defined" here
real a
end subroutine sub
end module aap
\ No newline at end of file
end module aap
! { dg-final { cleanup-modules "aap" } }
......@@ -76,3 +76,5 @@ end module global
100 continue
200 format (2i6)
END
! { dg-final { cleanup-modules "fails global" } }
......@@ -67,3 +67,5 @@ end module global
100 continue
200 format (2i6)
END
! { dg-final { cleanup-modules "global" } }
......@@ -36,3 +36,5 @@ program test
x = -huge(0_8)
call testoutput (x,-huge(0_8),50,'(I50)')
end program test
! { dg-final { cleanup-modules "testmod" } }
......@@ -75,3 +75,5 @@ program test
c2(1:1) = ' '
if (c1 /= c2) call abort
end program test
! { dg-final { cleanup-modules "testmod" } }
......@@ -16,4 +16,4 @@ program blank_common
if (z.ne.cmplx (a,b)) call abort ()
end program blank_common
! { dg-final { cleanup-modules "global" } }
......@@ -22,3 +22,4 @@ program collision
call foo ()
end program collision
! { dg-final { cleanup-modules "m1 m2" } }
......@@ -17,3 +17,4 @@ program d
if (v.ne.u) call abort ()
end program d
! { dg-final { cleanup-modules "a" } }
......@@ -23,4 +23,4 @@ program module_equiv
call foo ()
end program module_equiv
! { dg-final { cleanup-modules "test_equiv" } }
......@@ -33,4 +33,6 @@
if (N(1).ne.5) call abort ()
return
end subroutine Selection_Sort
end program module_interface
\ No newline at end of file
end program module_interface
! { dg-final { cleanup-modules "Max_Loc_mod" } }
......@@ -11,3 +11,4 @@ module foo
end
! { dg-final { cleanup-modules "foo" } }
......@@ -7,3 +7,5 @@ module snafu
end subroutine really_snafu
end interface foo
end module snafu
! { dg-final { cleanup-modules "snafu" } }
......@@ -5,3 +5,5 @@ module namelist_1
integer,private :: x
namelist /n/ x ! { dg-error "cannot be member of PUBLIC namelist" "" }
end module
! { dg-final { cleanup-modules "namelist_1" } }
......@@ -92,3 +92,5 @@ contains
end subroutine foo
end program namelist_14
! { dg-final { cleanup-modules "global" } }
......@@ -57,3 +57,5 @@ program namelist_15
(x(2)%m(2)%ch(2) == "kz"))) call abort ()
end program namelist_15
! { dg-final { cleanup-modules "global" } }
......@@ -37,3 +37,4 @@ CONTAINS
END FUNCTION
END
! { dg-final { cleanup-modules "M1" } }
......@@ -29,3 +29,5 @@ program namelist_use
close (10)
end program namelist_use
! { dg-final { cleanup-modules "global" } }
......@@ -32,3 +32,5 @@ program namelist_use_only
if ((i.ne.0).or.(rrrr.ne.3.5).or.foo()) call abort ()
close (10)
end program namelist_use_only
! { dg-final { cleanup-modules "global" } }
......@@ -41,3 +41,5 @@
call eyeore ()
call tigger (w)
end
! { dg-final { cleanup-modules "mod0 mod1 mod2" } }
......@@ -36,3 +36,4 @@ program testfoobar
if (all (l.ne.(/84,42,0/))) call abort ()
end program testfoobar
! { dg-final { cleanup-modules "foo bar foobar" } }
......@@ -53,3 +53,5 @@ PROGRAM use_foobar
CALL sub3 (z, j)
IF (ALL (j.ne.(/3,2,1/))) CALL abort ()
END PROGRAM use_foobar
! { dg-final { cleanup-modules "foo bar foobar" } }
......@@ -23,3 +23,5 @@ end module serial
character*15 :: buffer
buffer = lc ("Have a Nice DAY")
end
! { dg-final { cleanup-modules "string serial" } }
......@@ -24,3 +24,5 @@ end module serial
character*15 :: buffer
buffer = lc ("Have a Nice DAY")
end
! { dg-final { cleanup-modules "anything serial" } }
......@@ -17,3 +17,5 @@ program test
c = bobo(5)
if (c .ne. "12345") call abort
end program test
! { dg-final { cleanup-modules "para" } }
......@@ -20,3 +20,5 @@ end module m
use m
if (f ().ne.2) call abort ()
end
! { dg-final { cleanup-modules "m" } }
......@@ -14,3 +14,4 @@
end subroutine split
end module specfiles
! { dg-final { cleanup-modules "specfiles" } }
......@@ -30,3 +30,5 @@ end subroutine quus
program test
call quus
end program test
! { dg-final { cleanup-modules "foo bar" } }
......@@ -17,3 +17,5 @@ PROGRAM TEST
real(8) :: c(3)
c = cross_product()
END PROGRAM TEST
! { dg-final { cleanup-modules "module_vec3d" } }
......@@ -23,3 +23,4 @@ subroutine string_comp(i)
i = map(42)
end subroutine string_comp
! { dg-final { cleanup-modules "b" } }
......@@ -51,3 +51,5 @@ program test
if (tt(null(c4)) /= 3) call abort()
if (tt(null(c8)) /= 4) call abort()
end program test
! { dg-final { cleanup-modules "mymod" } }
......@@ -16,3 +16,4 @@ end module pr26246_1
! { dg-final { scan-tree-dump-times "static int" 0 "original" } }
! { dg-final { cleanup-tree-dump "original" } }
! { dg-final { cleanup-modules "pr26246_1" } }
......@@ -17,3 +17,4 @@ contains
end subroutine dummysub
end module modboom
! { dg-final { cleanup-modules "modboom" } }
......@@ -21,4 +21,4 @@ MODULE TEST
END MODULE
END
! { dg-final { cleanup-modules "TEST" } }
......@@ -31,3 +31,4 @@ module c
end subroutine d
end module c
! { dg-final { cleanup-modules "a c" } }
......@@ -15,3 +15,5 @@ contains
end function
end module
! { dg-final { cleanup-modules "m1" } }
......@@ -16,4 +16,6 @@ subroutine r
use t
b = 1. ! { dg-error "l-value since it is a procedure" }
y = a(1.)
end subroutine r
\ No newline at end of file
end subroutine r
! { dg-final { cleanup-modules "t" } }
......@@ -31,3 +31,5 @@ program pure_byref_3
a = hoj()
if (.not. all(a == (/1, 2, 3/))) call abort()
end program pure_byref_3
! { dg-final { cleanup-modules "huj_mod" } }
......@@ -11,3 +11,5 @@ contains
subroutine u
end subroutine u
end module m
! { dg-final { cleanup-modules "n m" } }
......@@ -30,3 +30,5 @@ contains
call bar(self, z)
end subroutine
end
! { dg-final { cleanup-modules "foo" } }
......@@ -30,3 +30,5 @@ contains
call bar_(self, z)
end subroutine
end
! { dg-final { cleanup-modules "foo" } }
......@@ -16,3 +16,5 @@ module ice
end subroutine bar
end subroutine foo
end module
! { dg-final { cleanup-modules "ice" } }
......@@ -11,3 +11,4 @@ character(4) :: b
b = a
end
! { dg-final { cleanup-modules "m" } }
......@@ -6,3 +6,5 @@ module FLAGS
character :: at, dev
equivalence ( encodings(1:1),at ), ( encodings(2:2),dev)
end module FLAGS
! { dg-final { cleanup-modules "FLAGS" } }
......@@ -16,3 +16,5 @@ subroutine init
use foo
if (.not.allocated(bar)) call abort
end subroutine init
! { dg-final { cleanup-modules "foo" } }
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