* Character range types

git-svn-id: trunk@34674 -
This commit is contained in:
michael 2016-10-08 18:05:00 +00:00
parent f6222e44ef
commit 391966a414
3 changed files with 8 additions and 2 deletions

View File

@ -1279,7 +1279,7 @@ begin
Result := ParseRecordDecl(Parent,NamePos,TypeName,PM);
end;
end;
tkNumber,tkMinus:
tkNumber,tkMinus,tkChar:
begin
UngetToken;
Result:=ParseRangeType(Parent,NamePos,TypeName,Full);

View File

@ -128,6 +128,7 @@ type
Procedure TestFileTypeDeprecated;
Procedure TestFileTypePlatform;
Procedure TestRangeType;
Procedure TestCharRangeType;
Procedure TestRangeTypeDeprecated;
Procedure TestRangeTypePlatform;
Procedure TestIdentifierRangeType;
@ -3022,6 +3023,11 @@ begin
DoTestRangeType('1','4','');
end;
procedure TTestTypeParser.TestCharRangeType;
begin
DoTestRangeType('#1','#4','');
end;
procedure TTestTypeParser.TestRangeTypeDeprecated;
begin
DoTestRangeType('1','4','deprecated');

View File

@ -30,7 +30,7 @@
<RunParams>
<local>
<FormatVersion Value="1"/>
<CommandLineParams Value="--suite=TTestStatementParser.TestTryExceptRaise"/>
<CommandLineParams Value="--suite=TTestTypeParser.TestCharRangeType"/>
</local>
</RunParams>
<RequiredPackages Count="1">