Browse Source

* force reference to AbortPrinter so smartlinking doesn't optimize the import away

git-svn-id: trunk@5242 -
peter 19 năm trước cách đây
mục cha
commit
99f1c86413
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      tests/tbs/tb0205.pp

+ 6 - 0
tests/tbs/tb0205.pp

@@ -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