소스 검색

+ dmmy code for target that do not support library

pierre 25 년 전
부모
커밋
f6b9436ebf
1개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  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}