spielwiese
Last change
on this file since 0054e7 was
1cbc28,
checked in by Oleksandr Motsak <motsak@…>, 12 years ago
|
updated test according to legacy Singular + new lists of tests
|
-
Property mode set to
100644
|
File size:
529 bytes
|
Line | |
---|
1 | LIB "tst.lib"; |
---|
2 | tst_init(); |
---|
3 | |
---|
4 | // alias stuff |
---|
5 | proc dummy1(alias list l) { int i = l[1]; i; }; |
---|
6 | proc dummy2(alias list l) { int i = l[1][1]; i; }; |
---|
7 | list l1 = list(1, 2); |
---|
8 | list l2 = list(list(1), list(2)); |
---|
9 | dummy1(l1); |
---|
10 | dummy2(l2); |
---|
11 | proc adummy1(int a, int b) { return("works"); }; |
---|
12 | proc adummy2(alias int a, int b) { return("works"); }; |
---|
13 | proc adummy3(int a, alias int b) { return("works"); }; |
---|
14 | proc adummy4(alias int a, alias int b) { return("works"); }; |
---|
15 | int a, b; |
---|
16 | adummy1(a, b); |
---|
17 | adummy2(a, b); |
---|
18 | adummy3(a, b); |
---|
19 | adummy4(a, b); |
---|
20 | |
---|
21 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.