tlibrary.pp 461 B

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