codetools: test $IFOpt

git-svn-id: trunk@59913 -
This commit is contained in:
mattias 2018-12-27 13:48:20 +00:00
parent 5a76f8b388
commit b0eae2930b

View File

@ -50,6 +50,7 @@ type
procedure TestParseExternalConcat;
procedure TestParseExternalConst;
procedure TestParseModeTP;
procedure TestParseIFOpt;
procedure TestParseProcAnoAssign;
procedure TestParseProcAnoArg;
end;
@ -477,6 +478,25 @@ begin
ParseModule;
end;
procedure TTestPascalParser.TestParseIFOpt;
begin
Add([
'program test1;',
'{$IFOPT R+}',
'RNothingError',
'{$ENDIF}',
'{$R+}',
'{$IFOPT R-}',
'RMinusError',
'{$ENDIF}',
'{$R-}',
'{$IFOPT R+}',
'RPlusError',
'{$ENDIF}',
'begin']);
ParseModule;
end;
procedure TTestPascalParser.TestParseProcAnoAssign;
begin
Add([