Ver código fonte

* adjust test so it also checks the full ParamFlags instead of only the reduced one

git-svn-id: trunk@35263 -
svenbarth 8 anos atrás
pai
commit
25842d70c8
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4 1
      tests/test/trtti9.pp

+ 4 - 1
tests/test/trtti9.pp

@@ -11,7 +11,10 @@ type
 
 function TestParam(Param: PProcedureParam; Flags: TParamFlags; ParamType: Pointer; Name: ShortString): Boolean;
 begin
-  Result := (Param^.Flags = PByte(@Flags)^) and (Param^.ParamType = ParamType) and (Param^.Name = Name);
+  Result := (Param^.Flags = PByte(@Flags)^) and 
+            (Param^.ParamFlags = Flags) and
+            (Param^.ParamType = ParamType) and 
+            (Param^.Name = Name);
 end;
 
 var