tw16263a.pp 390 B

1234567891011121314151617181920212223242526
  1. { %norun }
  2. { %target=darwin,linux,freebsd,solaris,beos,haiku }
  3. {$mode delphi}
  4. {$ifdef darwin}
  5. {$PIC+}
  6. {$endif darwin}
  7. {$ifdef CPUX86_64}
  8. {$ifndef WINDOWS}
  9. {$PIC+}
  10. {$endif WINDOWS}
  11. {$endif CPUX86_64}
  12. library tw16263a;
  13. function divide(d1,d2: double): double; cdecl;
  14. begin
  15. divide:=d1/d2;
  16. end;
  17. begin
  18. // check that the library does not re-enable fpu exceptions
  19. divide(1.0,0.0);
  20. end.