1 |
|
2 |
--| Copyright (c) 1993-2006 University of Southern California and contributors. |
3 |
--| All rights reserved. |
4 |
--| Your use of this work is governed under the terms of the GNU General |
5 |
--| Public License version 2. |
6 |
|
7 |
-- This is a test control file |
8 |
|
9 |
test_name change-manifest-type-expr |
10 |
test_description After initial compilation, a routine correctly prints the value of {like Current}.generating_type. When the expression is changed to {ARRAY [like Current]}.generating_type and system is recompiled, execution prints the wrong value (the one before the change). |
11 |
|
12 |
define TYPE "like Current" |
13 |
copy_sub Ace $TEST Ace |
14 |
copy_sub test.e $CLUSTER test.e |
15 |
compile_melted |
16 |
compile_result ok |
17 |
|
18 |
execute_work NONE exec_output1 |
19 |
execute_result ok |
20 |
compare exec_output1 output1 |
21 |
|
22 |
define TYPE "ARRAY [like Current]" |
23 |
copy_sub test.e $CLUSTER test.e |
24 |
compile_melted |
25 |
compile_result ok |
26 |
|
27 |
execute_work NONE exec_output2 |
28 |
execute_result ok |
29 |
compare exec_output2 output2 |
30 |
|
31 |
test_end |