diff options
Diffstat (limited to 'avx512-0037785/packages/fcl-passrc/tests/tconstparser.pas')
-rw-r--r-- | avx512-0037785/packages/fcl-passrc/tests/tconstparser.pas | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/avx512-0037785/packages/fcl-passrc/tests/tconstparser.pas b/avx512-0037785/packages/fcl-passrc/tests/tconstparser.pas index efe5d21d35..8162cb6a3c 100644 --- a/avx512-0037785/packages/fcl-passrc/tests/tconstparser.pas +++ b/avx512-0037785/packages/fcl-passrc/tests/tconstparser.pas @@ -43,6 +43,7 @@ Type Procedure TestSimpleIdentifierConst; Procedure TestSimpleSetConst; Procedure TestSimpleExprConst; + Procedure TestSimpleAbsoluteConst; Procedure TestSimpleIntConstDeprecatedMsg; Procedure TestSimpleIntConstDeprecated; Procedure TestSimpleFloatConstDeprecated; @@ -255,6 +256,19 @@ begin DoTestSimpleExprConst; end; +procedure TTestConstParser.TestSimpleAbsoluteConst; + +// Found in xi.pp + +begin + Add('Const'); + Add(' Absolute = 1;'); + ParseDeclarations; + AssertEquals('One constant definition',1,Declarations.Consts.Count); + AssertEquals('First declaration is constant definition.',TPasConst,TObject(Declarations.Consts[0]).ClassType); + +end; + procedure TTestConstParser.TestSimpleIntConstDeprecatedMsg; begin Hint:='deprecated ''this is old''' ; |