--| 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 change-anchor-type-finalize test_description A class has a routine `try (t: like n): like t' which just returns its argument, where `n: INTEGER is 47'. After initial compilation where the system is melted, the declaration of `n' is changed to `n: DOUBLE is 13.25' and the system is finalized. System execution then produces the wrong result (13 if finalized with inlining, -NaN if finalized without inlining and -O2, internal compiler error in gcc 3.2.2 if finalized without inlining and -O3). define ANCHOR "n: INTEGER is 47" copy_sub Ace $TEST Ace copy_sub test.e $CLUSTER test.e compile_melted compile_result ok execute_work NONE exec_output1 execute_result ok compare exec_output1 output1 define ANCHOR "n: DOUBLE is 13.25" copy_sub test.e $CLUSTER test.e compile_final compile_result ok c_compile_final c_compile_result ok execute_final NONE exec_output2 execute_result ok compare exec_output2 output2 test_end