-- This is a test control file

test_name array-of-user-defined-expanded
test_description This test is related to bug#11569. A user defined expanded class has several user defined expanded classes as attributes. Creating an array of this class is reported to crash the program at runtime.


define LOOPS "1000000"

copy_sub 	Ace $TEST Ace
copy_raw 	test.e $CLUSTER test.e
copy_raw 	a.e $CLUSTER a.e
copy_raw 	a_ref.e $CLUSTER a_ref.e
copy_raw 	b.e $CLUSTER b.e
copy_raw 	b_ref.e $CLUSTER b_ref.e


compile_melted
compile_result ok
c_compile_work
c_compile_result ok
execute_work NONE actual_output1 $LOOPS
execute_result ok
compare actual_output1 output1

compile_frozen
compile_result ok
c_compile_work
c_compile_result ok
execute_work NONE actual_output2 $LOOPS
execute_result ok
compare actual_output2 output1

compile_final
compile_result ok
c_compile_final
c_compile_result ok
execute_final NONE actual_output3 $LOOPS
execute_result ok
compare actual_output3 output1



test_end