--| 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 finalize-cast-func-result test_description An external routine has a signature specified (e.g., "C (double): long") to cause casting of a result before it is passed back to the Eiffel side. The external routine is redefined in a descendant. In a call to the routine which is statically bound, the cast is not applied to the result of the function call in the generated C code if the system is finalized. This results in wrong results when the system is executed. A frozen system works correctly. copy_sub Ace $TEST Ace copy_raw test.e $CLUSTER test.e compile_final compile_result ok c_compile_final c_compile_result ok execute_final NONE exec_output1 execute_result ok compare exec_output1 output test_end