Browse Source

+ hint directive testing

carl 23 years ago
parent
commit
d38880fb14
2 changed files with 51 additions and 0 deletions
  1. 12 0
      tests/tbs/tb0426.pp
  2. 39 0
      tests/tbs/ub0426.pp

+ 12 - 0
tests/tbs/tb0426.pp

@@ -0,0 +1,12 @@
+{ %VERSION=1.1 }
+uses ub0426;
+
+
+Begin
+ myroutine;
+ myroutine2;
+ myroutine3;
+ z:=0;
+end.
+
+

+ 39 - 0
tests/tbs/ub0426.pp

@@ -0,0 +1,39 @@
+{ %VERSION=1.1 }
+{$MODE OBJFPC}
+Unit ub0426;
+
+interface
+
+var
+ z: integer platform;
+
+
+procedure myroutine; platform;
+
+procedure myroutine2; deprecated;
+
+procedure myroutine3; unimplemented;
+
+
+implementation
+
+procedure myroutine; platform;
+begin
+end;
+
+procedure myroutine2; deprecated;
+begin
+end;
+
+procedure myroutine3;{$ifdef fpc}unimplemented;{$endif}
+begin
+end;
+
+Begin
+ myroutine;
+ myroutine2;
+ myroutine3;
+ z:=0;
+end.
+
+