From fc3685819c07008860e35f2d727d55365a4586e0 Mon Sep 17 00:00:00 2001 From: Yuriy Sydorov Date: Mon, 16 Aug 2021 16:12:21 +0300 Subject: [PATCH] + Added a test for the TP-style INLINE() statement. --- tests/test/ttpinl.pp | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 tests/test/ttpinl.pp diff --git a/tests/test/ttpinl.pp b/tests/test/ttpinl.pp new file mode 100644 index 0000000000..acf9f08b60 --- /dev/null +++ b/tests/test/ttpinl.pp @@ -0,0 +1,43 @@ +{ %cpu=i8086,i386 } + +{$ifdef fpc} +{$mode tp} +{$endif} + +procedure FillWord(var Dest; Count: Word; Data: Word); +begin +{$ifdef CPU386} + inline( + $8b/$7d/$55 then + begin + writeln('Wrong value: ', arr[i]); + Halt(1); + end; + writeln('OK.'); +end.