--| 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 validity-vrle2-basic test_description Violate validity constraint VRLE2 with a local which has the same name as a formal argument of the enclosing feature copy_sub Ace $TEST Ace define LOCALS "local x: INTEGER" define ARGUMENTS "(x: INTEGER)" copy_sub test.e $CLUSTER test.e compile_melted compile_result validity_error TEST VRLE(2) define LOCALS "local x: REAL" define ARGUMENTS "(x: STRING)" copy_sub test.e $CLUSTER test.e resume_compile compile_result validity_error TEST VRLE(2) define LOCALS "local y: REAL" define ARGUMENTS "(x: STRING)" copy_sub test.e $CLUSTER test.e resume_compile compile_result validity_warning TEST "Unused Local" define LOCALS "local x: INTEGER" define ARGUMENTS "(x: INTEGER)" copy_sub test.e $CLUSTER test.e compile_melted compile_result validity_error TEST VRLE(2) define LOCALS "local x: INTEGER" define ARGUMENTS "(y: INTEGER)" copy_sub test.e $CLUSTER test.e resume_compile compile_result validity_warning TEST "Unused Local" define LOCALS "local y: INTEGER" define ARGUMENTS "(y: INTEGER)" copy_sub test.e $CLUSTER test.e compile_melted compile_result validity_error TEST VRLE(2) define LOCALS "local" copy_sub test.e $CLUSTER test.e resume_compile compile_result ok define LOCALS "local y: INTEGER" define ARGUMENTS "(y: INTEGER)" copy_sub test.e $CLUSTER test.e compile_melted compile_result validity_error TEST VRLE(2) define ARGUMENTS "" copy_sub test.e $CLUSTER test.e resume_compile compile_result validity_warning TEST "Unused Local" test_end