|
@@ -161,6 +161,7 @@ type
|
|
Procedure TestReferencePointer;
|
|
Procedure TestReferencePointer;
|
|
Procedure TestInvalidColon;
|
|
Procedure TestInvalidColon;
|
|
Procedure TestTypeHelper;
|
|
Procedure TestTypeHelper;
|
|
|
|
+ procedure TestPointerReference;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TTestRecordTypeParser }
|
|
{ TTestRecordTypeParser }
|
|
@@ -3314,6 +3315,17 @@ begin
|
|
ParseType('Type Helper for AnsiString end',TPasClassType,'');
|
|
ParseType('Type Helper for AnsiString end',TPasClassType,'');
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+procedure TTestTypeParser.TestPointerReference;
|
|
|
|
+begin
|
|
|
|
+ Add('Type');
|
|
|
|
+ Add(' pReference = ^Reference;');
|
|
|
|
+ Add(' Reference = object');
|
|
|
|
+ Add(' end;');
|
|
|
|
+ ParseDeclarations;
|
|
|
|
+ AssertEquals('type definition count',1,Declarations.Types.Count);
|
|
|
|
+ AssertEquals('object definition count',1,Declarations.Classes.Count);
|
|
|
|
+end;
|
|
|
|
+
|
|
|
|
|
|
initialization
|
|
initialization
|
|
RegisterTests([TTestTypeParser,TTestRecordTypeParser,TTestProcedureTypeParser]);
|
|
RegisterTests([TTestTypeParser,TTestRecordTypeParser,TTestProcedureTypeParser]);
|