Browse Source

+ dmmy code for target that do not support library

pierre 25 years ago
parent
commit
f6b9436ebf
1 changed files with 14 additions and 0 deletions
  1. 14 0
      tests/test/testlib.pp

+ 14 - 0
tests/test/testlib.pp

@@ -1,3 +1,12 @@
+{$ifdef win32}
+ {$define supported}
+{$endif win32}
+{$ifdef linux}
+ {$define supported}
+{$endif linux}
+
+{$ifdef supported}
+
 library bug;
 
 const
@@ -16,3 +25,8 @@ exports
 
 begin
 end.
+{$else supported}
+begin
+  Writeln('No library for that target');
+end.
+{$endif supported}