mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 04:59:26 +02:00
* Character range types
git-svn-id: trunk@34674 -
This commit is contained in:
parent
f6222e44ef
commit
391966a414
@ -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);
|
||||
|
@ -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');
|
||||
|
@ -30,7 +30,7 @@
|
||||
<RunParams>
|
||||
<local>
|
||||
<FormatVersion Value="1"/>
|
||||
<CommandLineParams Value="--suite=TTestStatementParser.TestTryExceptRaise"/>
|
||||
<CommandLineParams Value="--suite=TTestTypeParser.TestCharRangeType"/>
|
||||
</local>
|
||||
</RunParams>
|
||||
<RequiredPackages Count="1">
|
||||
|
Loading…
Reference in New Issue
Block a user