fieker-DuValspielwiese
Last change
on this file since d914bdb was
46976a6,
checked in by Olaf Bachmann <obachman@…>, 26 years ago
|
* added status check to regress.cmd
* added tst_status(1); call to each tst file, just before quit
git-svn-id: file:///usr/local/Singular/svn/trunk@2271 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
407 bytes
|
Line | |
---|
1 | proc p1 |
---|
2 | { |
---|
3 | "in p1"; |
---|
4 | p2(); |
---|
5 | "again in p1"; |
---|
6 | return (); |
---|
7 | } |
---|
8 | proc p2 |
---|
9 | { |
---|
10 | "in p2"; |
---|
11 | listvar(all); |
---|
12 | listvar(proc); |
---|
13 | "again in p2"; |
---|
14 | return (); |
---|
15 | } |
---|
16 | proc rec |
---|
17 | { |
---|
18 | "in rec",#[1]; |
---|
19 | if (#[1] >0) |
---|
20 | { |
---|
21 | rec(#[1]-1); |
---|
22 | } |
---|
23 | if (#[1]==0) |
---|
24 | { |
---|
25 | listvar(all); |
---|
26 | listvar(proc); |
---|
27 | } |
---|
28 | "again in rec",#[1]; |
---|
29 | return (); |
---|
30 | } |
---|
31 | "call p1"; |
---|
32 | p1(); |
---|
33 | "call p2"; |
---|
34 | p2(); |
---|
35 | "call rec(3)"; |
---|
36 | rec(3); |
---|
37 | "end"; |
---|
38 | LIB "tst.lib";tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.