mirror of
https://github.com/ProgramSnail/Lama.git
synced 2026-01-01 19:48:19 +00:00
Included lama compilation in root's make regression target
This commit is contained in:
parent
52ef663986
commit
89536c67e0
3240 changed files with 14640 additions and 6 deletions
36
lama-compiler/regression/test033.lama
Normal file
36
lama-compiler/regression/test033.lama
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
var x, a, b, c;
|
||||
|
||||
fun test1 (a) {
|
||||
write (a);
|
||||
print ()
|
||||
}
|
||||
|
||||
fun test2 (b) {
|
||||
write (b);
|
||||
print ()
|
||||
}
|
||||
|
||||
fun test3 (c) {
|
||||
write (c);
|
||||
print ()
|
||||
}
|
||||
|
||||
fun print () {
|
||||
write (a);
|
||||
write (b);
|
||||
write (c)
|
||||
}
|
||||
|
||||
x := read ();
|
||||
|
||||
a := 100;
|
||||
b := 200;
|
||||
c := 300;
|
||||
|
||||
test1 (1);
|
||||
print ();
|
||||
test2 (2);
|
||||
print ();
|
||||
test3 (3);
|
||||
print ()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue