Included lama compilation in root's make regression target

This commit is contained in:
Egor Sheremetov 2023-09-04 13:25:12 +02:00
parent 52ef663986
commit 89536c67e0
3240 changed files with 14640 additions and 6 deletions

View file

@ -8,8 +8,8 @@ check: $(TESTS)
$(TESTS): %: %.lama
@echo $@
cat $@.input | LAMA=../runtime $(LAMAC) -i $< > $@.log && diff $@.log orig/$@.log
cat $@.input | LAMA=../runtime $(LAMAC) -ds -s $< > $@.log && diff $@.log orig/$@.log
# cat $@.input | LAMA=../runtime $(LAMAC) -i $< > $@.log && diff $@.log orig/$@.log
# cat $@.input | LAMA=../runtime $(LAMAC) -ds -s $< > $@.log && diff $@.log orig/$@.log
LAMA=../runtime $(LAMAC) $< && cat $@.input | ./$@ > $@.log && diff $@.log orig/$@.log
clean:

View file

@ -0,0 +1,6 @@
97
98
99
100
97
98

0
regression/test111.input Normal file
View file

21
regression/test111.lama Normal file
View file

@ -0,0 +1,21 @@
import Std;
fun printString (s) {
var i;
for i := 0, i < s.length, i := i + 1 do
write (s[i])
od
}
fun printListConcat ( str_list ) {
printString (stringcat ( str_list ))
}
var l = { "a" , "b" , "c" , "d" };
printListConcat (l);
l := { "ab" };
printListConcat (l);
l := {};
printListConcat (l)