mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 13:39:30 +02:00
codetools: test $IFOpt
git-svn-id: trunk@59913 -
This commit is contained in:
parent
5a76f8b388
commit
b0eae2930b
@ -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([
|
||||
|
Loading…
Reference in New Issue
Block a user