test_name 	melted-agent-exception-crash
test_description If you melt the creation of an agent and that calling the agent triggers an exception the interpreter stack gets corrupted.

define	COMMENT "--"
copy_sub 	Ace $TEST Ace
copy_sub 	test.e $CLUSTER test.e

compile_frozen
compile_result	ok

c_compile_work
c_compile_result ok

execute_work 	NONE exec_output1
execute_result 	ok
compare		exec_output1 output

define	COMMENT ""
copy_sub	test.e $CLUSTER test.e

compile_melted
compile_result	ok

execute_work 	NONE exec_output2
execute_result 	ok
compare		exec_output2 output

test_end