Skip to content

Commit f1809b5

Browse files
committed
Add simple tests of the sortreallocate feature
1 parent 1a8b433 commit f1809b5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

check/features.frm

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,3 +1111,27 @@ format C;
11111111
assert succeeded?
11121112
assert !(file("out.c") =~ /[_] [+]= /)
11131113
*--#] Issue392_ContinuationLines_0 :
1114+
*--#[ Sortrealloc_1 :
1115+
On sortreallocate;
1116+
Symbol x,y;
1117+
Local F = (x+y)^10;
1118+
.sort
1119+
Identify x = - y;
1120+
.sort
1121+
Print +s;
1122+
.end
1123+
assert succeeded?
1124+
assert result("F") =~ expr("0");
1125+
*--#] Sortrealloc_1 :
1126+
*--#[ Sortrealloc_2 :
1127+
Symbol x,y;
1128+
Local F = (x+y)^10;
1129+
.sort
1130+
#sortreallocate
1131+
Identify x = - y;
1132+
.sort
1133+
Print +s;
1134+
.end
1135+
assert succeeded?
1136+
assert result("F") =~ expr("0");
1137+
*--#] Sortrealloc_2 :

0 commit comments

Comments
 (0)