testlib.pp 398 B

1234567891011121314151617181920212223242526272829303132
  1. {$ifdef win32}
  2. {$define supported}
  3. {$endif win32}
  4. {$ifdef linux}
  5. {$define supported}
  6. {$endif linux}
  7. {$ifdef supported}
  8. library bug;
  9. const
  10. publicname='TestName';
  11. publicindex = 1234;
  12. procedure Test;export;
  13. begin
  14. end;
  15. exports
  16. Test name publicname;
  17. exports
  18. Test index publicindex;
  19. begin
  20. end.
  21. {$else supported}
  22. begin
  23. Writeln('No library for that target');
  24. end.
  25. {$endif supported}