source: git/Tst/Old/proc.tst @ 882ae9c

spielwiese
Last change on this file since 882ae9c 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 
1proc p1
2{
3  "in p1";
4  p2();
5  "again in p1";
6  return ();
7}
8proc p2
9{
10  "in p2";
11  listvar(all);
12  listvar(proc);
13  "again in p2";
14  return ();
15}
16proc 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";
32p1();
33"call p2";
34p2();
35"call rec(3)";
36rec(3);
37"end";
38LIB "tst.lib";tst_status(1);$
Note: See TracBrowser for help on using the repository browser.