Browse Source

* Added the $F+ switch (forced far calls) for some TP mode tests.

git-svn-id: trunk@46456 -
yury 5 years ago
parent
commit
2ab7cceeaa

+ 1 - 0
tests/tbs/tb0184.pp

@@ -2,6 +2,7 @@
 { in tp mode can't use the procvar in writeln          OK 0.99.11 (PFV) }
 { in tp mode can't use the procvar in writeln          OK 0.99.11 (PFV) }
 
 
 {$ifdef fpc}{$mode tp}{$endif}
 {$ifdef fpc}{$mode tp}{$endif}
+{$F+}
 
 
 type tmpproc=function:longint;
 type tmpproc=function:longint;
 
 

+ 1 - 0
tests/tbs/tb0218.pp

@@ -2,6 +2,7 @@
 { problem with procvars in tp mode                     OK 0.99.11 (PM) }
 { problem with procvars in tp mode                     OK 0.99.11 (PM) }
 
 
 {$mode tp}
 {$mode tp}
+{$F+}
 
 
 type proc = procedure(a : longint);
 type proc = procedure(a : longint);
 procedure test(b : longint);
 procedure test(b : longint);

+ 1 - 0
tests/tbs/tb0251.pp

@@ -2,6 +2,7 @@
 { @procvar in tp mode bugss                             OK 0.99.13 (PFV) }
 { @procvar in tp mode bugss                             OK 0.99.13 (PFV) }
 
 
 {$ifdef fpc}{$mode tp}{$endif}
 {$ifdef fpc}{$mode tp}{$endif}
+{$F+}
 
 
 function ReturnString: string;
 function ReturnString: string;
 begin
 begin

+ 1 - 0
tests/tbs/tb0433.pp

@@ -4,6 +4,7 @@
 type
 type
   codepointer = pointer;
   codepointer = pointer;
 {$endif fpc}
 {$endif fpc}
+{$F+}
 
 
 function times2(x : longint) : longint;
 function times2(x : longint) : longint;
 
 

+ 1 - 0
tests/test/cg/taddr2.pp

@@ -16,6 +16,7 @@ program taddr;
 {$ifdef fpc}
 {$ifdef fpc}
   {$mode tp}
   {$mode tp}
 {$endif}
 {$endif}
+{$F+}
 
 
    procedure testprocvar;
    procedure testprocvar;
      begin
      begin

+ 1 - 1
tests/test/tprocvar2.pp

@@ -1,7 +1,7 @@
-{$F+}
 {$ifdef fpc}
 {$ifdef fpc}
 {$mode tp}
 {$mode tp}
 {$endif fpc}
 {$endif fpc}
+{$F+}
 
 
 type
 type
   tproc = procedure;
   tproc = procedure;

+ 1 - 0
tests/webtbs/tw2059.pp

@@ -1,4 +1,5 @@
 {$mode tp}
 {$mode tp}
+{$F+}
 type ProcType    = procedure(s:string);
 type ProcType    = procedure(s:string);
      GetProcType = function(s:string;var Proc:ProcType):boolean;
      GetProcType = function(s:string;var Proc:ProcType):boolean;
 
 

+ 1 - 0
tests/webtbs/tw2268.pp

@@ -2,6 +2,7 @@
 { Submitted by "marco" on  2002-12-19 }
 { Submitted by "marco" on  2002-12-19 }
 { e-mail: [email protected] }
 { e-mail: [email protected] }
 {$ifdef fpc}{$mode TP}{$endif}
 {$ifdef fpc}{$mode TP}{$endif}
+{$F+}
 
 
 function P1:longint; begin end;
 function P1:longint; begin end;
 function P2:longint; begin end;
 function P2:longint; begin end;