mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 21:30:12 +02:00
* force reference to AbortPrinter so smartlinking doesn't optimize the import away
git-svn-id: trunk@5242 -
This commit is contained in:
parent
c3b0fc164b
commit
99f1c86413
@ -8,8 +8,14 @@ program test_win32_drv;
|
||||
procedure printer;external 'winspool.drv' name 'AbortPrinter';
|
||||
|
||||
procedure test;
|
||||
var
|
||||
i : integer;
|
||||
begin
|
||||
Writeln('Loading of Winspool works ');
|
||||
{ Force reference to winspool.drv }
|
||||
i:=1;
|
||||
if i=0 then
|
||||
printer;
|
||||
end;
|
||||
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user