laptest.red 603 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. % LAPTEST.RED - A selection of small procedures for testing LAP
  2. % MLG
  3. % Run through LAPOUT for CMACRO (ALM) level,
  4. % and turn on DOPASS1LAP for TLM level.
  5. procedure foo1 x;
  6. x;
  7. procedure foo2 x;
  8. 1;
  9. procedure foo3 x;
  10. x+3;
  11. procedure foo4 x;
  12. print(x+4);
  13. procedure foo5 x;
  14. if x=1 then 'one else 'not!-one;
  15. FLUID '(FLU1 FLU2);
  16. procedure foo6a(Flu1,Flu2);
  17. begin Print List('before,FLU1,Flu2);
  18. Flu1:=10;
  19. Flu2:=20;
  20. Print List('after,FLU1,Flu2);
  21. end;
  22. procedure foo6();
  23. <<Flu1:=1; Flu2 :=2;
  24. Print List('before,FLU1,Flu2);
  25. Foo6a('a,'b);
  26. Print List('after,FLU1,Flu2);
  27. >>;
  28. End;