--| Copyright (c) 1993-2006 University of Southern California and contributors. --| All rights reserved. --| Your use of this work is governed under the terms of the GNU General --| Public License version 2. -- This is a test control file test_name remove-external-routine test_description An external routine (which happens to be the root creation procedure) is changed to an internal routine with three different declarations for the same local and then back copy_sub Ace $TEST Ace define BODY "external "C" alias "weaselhead" end;" copy_sub test.e $CLUSTER test.e compile_melted compile_result ok define BODY "local x1: ARRAY [INTEGER]; x1: ARRAY [BOOLEAN]; x1: ARRAY [DOUBLE]; do end;" copy_sub test.e $CLUSTER test.e compile_melted compile_result validity_error TEST VREG VREG define BODY "local x1: ARRAY [INTEGER]; x2: ARRAY [BOOLEAN]; x3: ARRAY [DOUBLE]; do end;" copy_sub test.e $CLUSTER test.e resume_compile compile_result validity_warning TEST "Unused Local" test_end