mirror of
https://github.com/ProgramSnail/Lama.git
synced 2026-01-01 19:48:19 +00:00
Moved x86only tests into stdlib/regression
This commit is contained in:
parent
e4b34a3ec1
commit
eeab48ed33
39 changed files with 10 additions and 59 deletions
14
stdlib/regression/test25.lama
Normal file
14
stdlib/regression/test25.lama
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
fun f (x, y) {
|
||||
fun () {x+y}
|
||||
}
|
||||
|
||||
printf ("Cloning int: %d\n", clone (5));
|
||||
printf ("Cloning string: %s\n", clone ("abc"));
|
||||
printf ("Cloning array: %s\n", clone ([1, 2, 3, 4, 5]).string);
|
||||
printf ("Cloning sexp: %s\n", clone (A (1, 2, 3, 4, 5)).string);
|
||||
|
||||
{
|
||||
local c = f (5, 6), cc = clone (c);
|
||||
|
||||
printf ("Cloning closure: address %s, %d, %d\n", if cc[0] == c[0] then "ok" else "fail" fi, c[1], c[2])
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue