tmacpas4.pp 614 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {%NORUN}
  2. {$MODE MACPAS}
  3. {Tests of mac pascal constructs, concerning compile time constructs}
  4. {** Test Compiler variables **}
  5. {$SETC ADAM := TRUE}
  6. {$IFC ADAM <> TRUE}
  7. {$ERRORC Test failed}
  8. {$ENDC}
  9. {$SETC BERTIL := FALSE}
  10. {$IFC BERTIL = FALSE}
  11. { OK }
  12. {$ELSEC}
  13. {$ERRORC Test failed}
  14. {$ENDC}
  15. {** Test Defined/Undefined **}
  16. {$IFC UNDEFINED FPC_MACPAS}
  17. {$ERRORC Test failed}
  18. {$ENDC}
  19. {$IFC NOT DEFINED FPC_MACPAS}
  20. {$ERRORC Test failed}
  21. {$ENDC}
  22. {** Test Push/Pop **}
  23. {$J-}
  24. {$PUSH}
  25. {$PUSH}
  26. {$J+}
  27. {$POP}
  28. {$POP}
  29. {$IFC OPTION(J)}
  30. {$ERRORC $PUSH/$POP doesnt work properly}
  31. {$ENDC}
  32. program tmacpas4;
  33. begin
  34. end.