Commit Graph

7927 Commits

Author SHA1 Message Date
Pierre Muller
70998b6720 Use MAKEINC_SEPARATE to enable use of '-f' option of gparmake, to redirect dotest output to separate log files 2024-08-30 22:57:57 +02:00
Pierre Muller
e60bf232b9 Add '-f' option to gparmake, to redirect dotest output to separate log files 2024-08-30 22:57:57 +02:00
Pierre Muller
9f69dd28b4 Allow to pass antoher exitcode to fail utility by command line first parameter 2024-08-30 22:57:56 +02:00
Pierre Muller
34a18adea6 Set Result to false at ExecuteRedir function entry 2024-08-30 22:57:56 +02:00
Pierre Muller
b36c8199bd Add non-empty UniqueSuffix also as string prefix to all Verbose procedure calls 2024-08-30 22:57:56 +02:00
florian
7d1bb89455 * patch by Alexander (Rouse_) Bagel: TArrayHelper.BinarySearch, when searching
for an element that is obviously missing from the array, should return
    the position where the element should have been, but instead it reset AFoundIndex to -1, resolves #40867
2024-08-29 21:18:57 +01:00
florian
0735ac0d1f * throw an error in iso/extended pascal mode if enum types are passed to writeln, resolves #40896 2024-08-24 22:14:43 +02:00
Nikolay Nikolov
71ada8453a + increase WebAssembly max memory limit for test tw11006.pp, because the test
runs out of memory with the default memory limit of 256 MiB
2024-08-24 13:19:08 +03:00
Nikolay Nikolov
d561390687 + increase WebAssembly max memory limit for test tmt1.pp, because the test runs
out of memory with the default memory limit of 256 MiB
2024-08-24 13:12:08 +03:00
Nikolay Nikolov
42d8a29156 + test runner: allow forcing thread tests by specifying the TEST_THREADS=1 environment option 2024-08-23 13:16:00 +03:00
Nikolay Nikolov
1e630e8a17 + increase WebAssembly max memory limit for test theapthread.pp, because the
test runs out of memory with the default memory limit of 256 MiB
2024-08-22 20:08:35 +03:00
Nikolay Nikolov
2dd610c140 * fixed test tw0882.pp for WebAssembly's memory requirements 2024-08-18 10:17:13 +03:00
Rika Ichinose
801e14c33b Faster Insert(ansi/unicodestring). 2024-08-12 20:09:30 +00:00
Nikolay Nikolov
e48fdc5b0f + added WebAssembly inline asm tests for:
i32.clz
  i64.clz
  i32.ctz
  i64.ctz
  i32.popcnt
  i64.popcnt
2024-07-28 19:32:36 +03:00
Nikolay Nikolov
c1d6cad444 + added WebAssembly inline asm tests for:
i32.rotl
  i64.rotl
  i32.rotr
  i64.rotr
2024-07-28 19:24:02 +03:00
Nikolay Nikolov
5043bdaf18 + added WebAssembly inline asm tests for:
i32.shr_s
  i64.shr_s
2024-07-28 19:17:28 +03:00
Nikolay Nikolov
536b85021d + added WebAssembly inline asm tests for:
i32.shr_u
  i64.shr_u
2024-07-28 19:12:12 +03:00
Nikolay Nikolov
a1e4d5a517 + added WebAssembly inline asm test for:
i32.shl
  i64.shl
2024-07-28 19:06:20 +03:00
Nikolay Nikolov
3967814081 + added WebAssembly inline asm test for:
i32.and
  i64.and
  i32.or
  i64.or
  i32.xor
  i64.xor
2024-07-28 18:58:31 +03:00
Nikolay Nikolov
28a849a293 + added WebAssembly inline asm test for:
i32.rem_s
  i64.rem_s
  i32.rem_u
  i64.rem_u
2024-07-28 18:46:48 +03:00
Nikolay Nikolov
3ad7a0e716 + added WebAssembly inline asm tests for the instructions:
i32.div_s
  i64.div_s
  i32.div_u
  i64.div_u
2024-07-28 18:38:32 +03:00
florian
124480e73a * spelling fixed 2024-07-27 19:51:37 +02:00
Michaël Van Canneyt
429d04089e * Wrong file copied 2024-07-27 13:21:24 +02:00
Michaël Van Canneyt
87137a4aaa * Do not include class and array properties in RTTI 2024-07-27 08:21:44 +02:00
florian
a57971204c * reduce iterations for RiscV32 for now 2024-07-26 21:48:20 +02:00
Michaël Van Canneyt
342d3338e5 * Correctly pass UsePublishedOnly on to sub-contexts. Fixes issue #40828 2024-07-24 18:07:09 +02:00
Nikolay Nikolov
50c1eb4089 + added WebAssembly inline asm test for the instructions:
i32.mul
    i64.mul
    f32.mul
    f64.mul
2024-07-21 15:23:20 +03:00
Nikolay Nikolov
813427da84 + added WebAssembly inline asm test for the instructions:
i32.sub
    i64.sub
    f32.sub
    f64.sub
2024-07-21 15:03:38 +03:00
Nikolay Nikolov
7f4f254888 + added test for the WebAssembly inline asm call instruction 2024-07-20 21:54:03 +03:00
Nikolay Nikolov
bbb159658a + added basic WebAssembly inline assembler test 2024-07-20 17:08:23 +03:00
florian
e4b88655af * test for mr 724 2024-07-20 13:46:06 +02:00
Michaël Van Canneyt
b0a82993e6 * Inherit extended RTTI settings from parent object 2024-07-19 16:05:14 +02:00
Michaël Van Canneyt
de1b3a982b * Do not generate RTTI for generic methods (delphi compatible) 2024-07-19 10:42:41 +02:00
Michaël Van Canneyt
1743df7b80 * Patch by Evgenii Savin to avoid IE 2010021502 when calling generic from other generic. Fixes issue #40770 2024-07-12 18:04:57 +02:00
florian
b974e4a25f * fix extension to 64 bit on aarch64, resolves #40576 2024-07-07 16:36:29 +02:00
Michaël Van Canneyt
adc66b233d * Properly release procdefs. Patch by Evgenij Savin, fixes issue #40844 2024-07-05 14:35:05 +02:00
florian
97a5ec0ff4 + test for Math.RandG based on demo provided by Rika for mr 692 2024-06-27 22:14:40 +02:00
florian
abcced55af * (lsighly, added safety check) patch by Евгений Савин, resolves #40784 2024-06-23 22:07:51 +02:00
Sven/Sarah Barth
60190ff375 * regenerate Makefiles after the removal of the vpath settings 2024-06-14 15:04:40 +02:00
Sven/Sarah Barth
b8c695dad8 - remove setting the vpath for the PPU tests as this should not be necessary due to all targets being available in the corresponding variables 2024-06-14 15:03:57 +02:00
florian
8b2ebd07bf * don't throw an internal error if a procedure is passed to a const formal parameter, resolves #40817 2024-06-13 22:32:54 +02:00
Pierre Muller
c9260edb4f Postpone setting of prevline to correct message when prevline not found 2024-06-13 08:55:05 +02:00
Pierre Muller
f7eaa6f3d6 Regenerate Makefile's after setting ALLPPUDIRS variable 2024-06-11 07:45:53 +00:00
Pierre Muller
c7213e6629 Set ALLPPUDIRS make variable 2024-06-11 07:45:53 +00:00
florian
e2ed90d40f * extended test
* fixed error numbers
2024-06-08 11:11:10 +02:00
florian
f2bcf407f3 + test for Sysutils.Trim* 2024-06-07 23:28:08 +02:00
Sven/Sarah Barth
953a4e1b64 * fix #40563: apply slightly adjusted patch by byte bites to use fixed range of 1..Length(str) for for-in loops iterating over ShortStrings
+ added test
2024-06-04 22:53:16 +02:00
florian
d5ab671ec3 * patch by Marģers: patch to enable ENTER asm instruction
+ test
2024-05-29 23:15:09 +02:00
florian
a6fe41f3f6 * decrease failure rate 2024-05-28 23:21:40 +02:00
florian
5a59ffdca7 * extended with a Chi square test to check if the random values are equally distributed 2024-05-26 23:16:50 +02:00
florian
4a4eadc60e * throw an error if varargs is used without appropriate calling conventions, resolves #40342 2024-05-14 22:44:12 +02:00
florian
a9c88ace25 * handle unary minus in the preprocessor, resolves #40782 2024-05-13 22:36:40 +02:00
Sven/Sarah Barth
485b31de21 * fix #40764: declare procsyms of a class/object also as sp_generic_dummysym if a symbol in a parent class has it set so that the parser will treat it as a potential generic
+ added test
2024-05-06 23:39:18 +02:00
florian
6a109634b0 * extended test to include the test case for #40732 2024-04-27 18:44:59 +02:00
Sven/Sarah Barth
61397d40ae * ensure that Insert() of a single element into a dynamic array is typechecked in a way that the user is notified of errors
+ added test
2024-04-24 23:13:36 +02:00
florian
2d1fba1fa1 * disable (type ...), it did never work and there are not test, resolves #40562 2024-04-24 22:51:11 +02:00
florian
902c93f3c3 * do not limit the number of interfaces per class, resolves #40268 2024-04-20 22:05:18 +02:00
florian
e412f6be55 + in on an empty set is always false, resolves #40745 2024-04-19 23:43:35 +02:00
florian
2f9ed0576e * optimize x </>= length(...) also if the operands are swapped 2024-04-18 23:07:40 +02:00
florian
e130557d9f * optimize x < length(arr) and x >= length(arr) as proposed in #40292 2024-04-17 23:29:13 +02:00
florian
1222456c13 * allow [] for constant set constraints, resolves #37020 2024-04-13 22:28:54 +02:00
Sven/Sarah Barth
b0d61558e3 * fix #40725: pass along whole array constructor to the Insert() so that it's converted with the correct checks
+ added test
2024-04-12 17:34:58 +02:00
Sven/Sarah Barth
e76c5d96d8 * Fix #40716: only add helpers if the type doesn't belong to the current object/class/record hierarchy
+ added test
2024-04-12 17:34:58 +02:00
Sven/Sarah Barth
7a1ef994b4 * fix #40721: correctly set up the generic defs when parsing fields, especially important when dealing with anonymous fields
+ added tests
2024-04-12 17:34:58 +02:00
Sven/Sarah Barth
550397b982 * fix #40708: when creating the sub-arraydefs for comma separated arrays, ensure that the new sub array also has the generic related information set up correctly
+ added test
2024-04-12 17:34:58 +02:00
florian
74bed63e28 + test for fc3d71bba3 2024-04-10 23:01:25 +02:00
florian
fd68d3bfbb * ensure that left and right have a result type set in tx86addnode.pass_1, resolves #40727 2024-04-08 22:53:34 +02:00
florian
80e8dce98f * remove unused variables 2024-04-02 16:41:24 +02:00
florian
f28cbbf73b * run test with different options as it is tricky 2024-03-27 22:40:06 +01:00
J. Gareth "Curious Kit" Moreton
889c55ecae * "tminmax" test now prints out 'ok' if it passes and the error code if it fails 2024-03-27 02:56:44 +00:00
florian
3327204ebd * restored overwritten test 2024-03-24 14:30:07 +01:00
florian
20f9b82543 * AArch64: overflow checking for abs
* tabs adapted: also abs(longint) must overflow check on 64 bit platforms
2024-03-24 12:47:16 +01:00
florian
1fccfd3ee1 * AArch64: avoid false overflow error in case of -2^63+0 2024-03-24 12:36:02 +01:00
florian
367beaaef4 + extend test to test overflow checking 2024-03-23 22:21:42 +01:00
florian
8aca910435 * improve test so it exits with the proper error code 2024-03-21 22:52:56 +01:00
florian
635b06d53c + test for commit e1297e0859 2024-03-20 22:01:59 +01:00
Pierre Muller
a0a57868c0 cat value of TEST_DATETIME variable into stamp file 2024-03-12 17:19:48 +01:00
florian
57a1b5a39b * fix test for i386 2024-03-10 23:02:38 +01:00
florian
594d4cc4f9 * transform -1-x into not(x) 2024-03-08 22:42:26 +01:00
florian
5086cf7e72 * set packenum and setalloc to defined values when changing mode, resolves #40056 2024-03-08 20:12:55 +01:00
florian
f41025f5dd * optimize also -(x+1) and -(1+x) into not(x) 2024-03-06 22:56:37 +01:00
florian
59c77a48b5 * transform -x-1 into not(x), resolves #40313 2024-03-05 22:11:32 +01:00
florian
4e1f854d49 * patch by Rika + test: Don’t explicitly change GetMem(0) to GetMem(1), it works anyway, resolves #40456 2024-03-01 22:49:45 +01:00
florian
11f076f0e7 + CMPXCHG16BSupport 2024-02-28 22:18:42 +01:00
florian
1966ce7c1c + Skylake-X for i386 2024-02-26 22:41:55 +01:00
Pierre Muller
7072813c86 Add fcl-process to TESTPACKAGESDIRECTDIRS variable 2024-02-23 16:00:06 +00:00
Sven/Sarah Barth
3447512e29 * ensure that "type SomeName = type reference" is still allowed when function references are disabled
+ added test
2024-02-23 15:31:38 +01:00
florian
3cf7890352 * don't throw an internalerror in case of an illegal assignment to an open array, resolves #40662 2024-02-22 22:35:18 +01:00
Sven/Sarah Barth
5c890b59e3 * fix #40655: apply changes to packrecords, packenum and setalloc using the recordpending*() functions so that they are applied correctly in case of them being used directly after a {$POP}{$PUSH} sequence
+ added test
2024-02-20 23:52:52 +01:00
florian
bccc0b195e * allow type = type ... ; syntax only for previously declared types, avoids also internal error for #40566 2024-02-20 23:14:31 +01:00
florian
a75e453c30 + thlcgobj.location_force_mem now supports LOC_JUMP as well, resolves #40650 2024-02-19 22:22:12 +01:00
florian
af482fde23 * generate specializations only of no error happened so far to prevent further (internal)errors, resolves #40646 2024-02-18 23:08:21 +01:00
Sven/Sarah Barth
ae06528db4 + add test for already fixed #24285 2024-02-18 19:35:24 +01:00
Sven/Sarah Barth
60c94c50ff + add test for now fixed #40639 2024-02-18 19:35:24 +01:00
Sven/Sarah Barth
ea102d792f * fix #40634 the 2nd: a (strict) protected symbol in a parent class of the owner is supposed to be visible
+ added test
2024-02-18 19:35:24 +01:00
J. Gareth "Curious Kit" Moreton
afd63ef0ce * New test for !40643 2024-02-18 15:37:27 +00:00
J. Gareth "Curious Kit" Moreton
068b8f9e9d * New test for i40647 2024-02-18 15:31:20 +00:00
Pierre Muller
8122defbd8 Add test for bug report 40537 2024-02-17 21:33:52 +00:00
FPC_Admin
2350b34d0f Handle seperation line even when combined with last line of previous log 2024-02-17 16:06:46 +00:00
FPC_Admin
2584a271b5 Explicitly use testu version of GetFileContents function 2024-02-17 16:06:46 +00:00
Sven/Sarah Barth
d9903e6e16 * fix #40634: correctly check visibility for child classes in case of a mixture of specializations and non-specializations
+ added test
2024-02-16 16:54:23 +01:00
Michaël Van Canneyt
d45556666e * Properly handle stdout for redir 2024-02-15 14:08:42 +01:00
Pierre Muller
a3b730b0f1 Add POPCNTSupport call to avoid use of unsupported instruction 2024-02-15 09:01:04 +00:00
florian
2575cbc439 * complain about turned off support of c style operators only in the parser,
so error recovery is better
2024-02-11 11:05:05 +01:00
florian
bc0d2293a1 * stricter type checking for set constants, resolves #40631 2024-02-09 23:36:44 +01:00
Sven/Sarah Barth
43721f21c4 * fix #40621: when checking for visibility of members then always use the genericdefs for specializations for correct scoping
+ added test
2024-02-09 17:24:39 +01:00
Pierre Muller
46508f6af1 Add some output to explain failure for test tests/webtbs/tw40624.pp 2024-02-06 13:09:15 +00:00
florian
b6ccf369b9 * patch by Евгений Савин to make Variant to string convertion use CurrToStr for varCurrency, resolves #40624 2024-02-04 14:10:49 +01:00
Sven/Sarah Barth
27a2a04279 * fix #40618: apply adjusted patch by Евгений Савин (@jack128a) so that a non-load case expression is loaded into a temp first when converting a single range branch into an if-clause
+ added test
2024-02-02 15:55:40 +01:00
Pierre Muller
c3b2e35a8f Also use 60 seconds as max_count in new code 2024-02-02 10:53:52 +01:00
Pierre Muller
ac4927aef7 Fix typo in %opt 2024-02-02 10:47:21 +01:00
florian
dc30431d89 * compile with stack checking 2024-01-29 23:28:21 +01:00
Michaël Van Canneyt
d89851d094 * Fixed compilation with FPC 3.2.2 2024-01-29 21:15:20 +01:00
Michaël Van Canneyt
f0703c4dac * Fix exit code 2024-01-29 20:58:39 +01:00
Michaël Van Canneyt
1546c4a794 * Set executeredir 2024-01-29 08:59:56 +01:00
Michaël Van Canneyt
031539dd69 * Use TProcess file redirection facilities 2024-01-28 11:30:37 +01:00
florian
b32573d1eb * inserting $result into the symtables should never trigger a duplicate symbol error, resolves #40608 2024-01-27 22:05:31 +01:00
florian
272417e602 * while on windows the max. possible year should be 1980+127=2127, 2104 causes an error (seems to be limited to 2099), so stay with 2096 2024-01-27 20:38:06 +01:00
florian
d901f72002 * named test properly 2024-01-26 21:43:18 +01:00
florian
14ab1cfb71 * set stack margin on windows, so there is stack space left for exception handling in case of a stack overflow, resolves #40589 2024-01-24 21:31:03 +01:00
Sven/Sarah Barth
981ec64666 * fix #40594: when assigning a nested function to a function reference don't check for the nested procvars parameter, because nested functions can be treated like anonymous functions here
+ added test
2024-01-22 22:27:33 +01:00
Sven/Sarah Barth
47c21fd1bc * fix #40593: don't check for a static method when assigning a methodpointer to a function reference
+ added test
2024-01-22 19:44:36 +01:00
J. Gareth "Curious Kit" Moreton
038c163717 * New CG tests for verifying tvecnode.simplify correctness 2024-01-21 11:56:09 +00:00
florian
08e494ffd1 * extended test 2024-01-21 11:32:28 +01:00
Sven/Sarah Barth
21ffa221e6 * fix #40595: correctly access the list of parameters of the extended method table
+ added test
2024-01-15 23:14:38 +01:00
Sven/Sarah Barth
dd4f7e9148 * fix #40592: make the Delphi-compatible attributes usable, but in a way that makes it clear to the user that they won't work
+ added test
2024-01-15 22:29:47 +01:00
J. Gareth "Curious Kit" Moreton
0418078805 * Added unsigned versions of the "tval" tests 2024-01-13 22:24:08 +00:00
J. Gareth "Curious Kit" Moreton
e6d32f9f36 * Added new "tval2" test that assigns constant string symbol 2024-01-13 22:24:08 +00:00
J. Gareth "Curious Kit" Moreton
d8079ea239 * New "tval1" test to verify that Val with constants works properly 2024-01-13 22:24:08 +00:00
Sven/Sarah Barth
bb5b9acbb2 * ensure that TObject.FieldAddress returns the same values as accessing the RTTI directly 2024-01-12 23:49:46 +01:00
Nikolay Nikolov
a8b4c0772c * fixed bug that caused 'c in ['a'..'z']' to fail on the WebAssembly target, when code is compiled with {$packset 1} 2024-01-10 03:11:13 +02:00
Sven/Sarah Barth
98a25439c3 + add a test that checks for correct working of the legacy method table 2024-01-07 18:09:51 +01:00
florian
94a56ba3d5 + test from Rika for merge request 566 2024-01-06 22:18:30 +01:00
Michaël Van Canneyt
a98462835e * Extended RTTI tests 2024-01-02 07:24:31 +01:00
Sven/Sarah Barth
7eea850726 * TVmtFieldEntry.FieldOffset needs to be SizeUInt instead of PtrUInt, so that it works correctly on the various memory models of i8086 as well
+ added test
2024-01-02 07:09:19 +01:00
Sven/Sarah Barth
ad61db2ff5 * allow a nested function that calls itself can be converted to a function reference
+ added test
2023-12-30 14:47:38 +01:00
Sven/Sarah Barth
74833bda09 * split the two error cases of tanonfunc25 into two different tests 2023-12-30 13:58:09 +01:00
Sven/Sarah Barth
787454d5b2 * correctly handle managed function results when converting a global or nested function to a function reference
+ added test
2023-12-29 20:55:37 +01:00
Jonas Maebe
958f30f192 webtbs/tw10641.pp: skip for Darwin (it does not support these relocations) 2023-12-04 22:52:39 +01:00
Jonas Maebe
24fcd05e8c LLVM: only round currency values when storing them back to memory
Resolves #40550
2023-12-04 22:52:39 +01:00
Karoly Balogh
679f2f75b3 human68k: regenerated Makefiles 2023-11-30 23:43:27 +00:00
Jonas Maebe
2db4cae7aa nested procvars: support assignments when switch not active
Support assigning one nested procvar to another even when the nestedprocvars
modeswitch is not active. This can happen when the type was declared in a
different unit that was compiled with this modeswitch, or in internally
generated wrapper code (which uses "pure" objfpc mode)
2023-11-25 22:35:55 +01:00
Rika Ichinose
a55da71b23 Add tests for IndexQWord, and shorten tindex.pp. 2023-11-18 21:54:05 +00:00
Jonas Maebe
340d389e20 cpptcl1.o: recompiled with -fno-exceptions
As identified by @modersohn, resolves #40501
2023-11-16 23:03:13 +01:00
J. Gareth "Curious Kit" Moreton
cc3f4508fd * a64: New CG tests for evaluating correct EON instructions 2023-11-08 21:07:00 +00:00
Sven/Sarah Barth
3f1d62af8e * fix #40504: always provide the global enum symbol for anonymous enum types (e.g. as part of a set)
+ added test
2023-11-07 20:33:55 +01:00
Sven/Sarah Barth
68668c649e * fix #40500: do a for-in on a string variable using low(strvar) to high(strvar) so that zero based strings are handled correctly
+ added test
2023-11-07 20:28:15 +01:00
Jonas Maebe
0ca260e08c LLVM: fix currency parameters passed on the stack on x86-64
Resolves #40496
2023-11-05 11:30:19 +01:00
florian
de69f1d858 * moved files to appropriate location 2023-11-01 10:09:40 +01:00
Rika Ichinose
dba8138175 Refactor promotional features of StrUtils. 2023-11-01 09:02:27 +00:00
florian
b2a13077c0 * redefine also PPChar and PPPChar depending on the string type mode, resolves #40491 2023-10-31 23:13:22 +01:00
Rika Ichinose
e00ab51185 On i386 and x86_64, add cpu.CPUID — high-level wrapper to CPUID instruction, and cpu.CPUBrandString — convenience for CPUID leaves 80000002, 80000003, and 80000004. 2023-10-31 21:20:45 +03:00
Michaël Van Canneyt
9f3a50315b * Enable function references and anonymous functions in Delphi mode 2023-10-31 08:42:28 +01:00
J. Gareth "Curious Kit" Moreton
5e2f088a5b * "blea" test will now display the CPU name (can be disabled by removing {$DEFINE DETECTCPU}) 2023-10-29 10:26:52 +00:00
J. Gareth "Curious Kit" Moreton
a353d7c65b * New LEA bench test 2023-10-29 10:26:52 +00:00
Rika Ichinose
9382070454 Refactor and fix a bug in Boyer-Moore. 2023-10-28 06:56:15 +00:00
J. Gareth "Curious Kit" Moreton
286c823e27 * Tests for i40474 and i40475 (BIC issue on AArch64 and incorrect shifter/extender mnemonics respectively) 2023-10-22 13:13:58 +00:00
J. Gareth "Curious Kit" Moreton
6b569d0ada * ARM: New test to evaluate ADR encoding error 2023-10-22 12:04:05 +00:00
Sven/Sarah Barth
287ef8e79a * fix #40410: allow specialization of a procdef also inside exception handlers + added test 2023-10-20 19:54:05 +02:00
Sven/Sarah Barth
f88ee7b2d8 * fix #40451: load the assembly symbol into a separate operand so that an offset already contained in oper isn't discarded + added test 2023-10-20 19:54:04 +02:00
Pierre Muller
8c620daf33 Remove readln and add NORUN marker for tw40453 test 2023-10-15 11:22:05 +00:00
florian
94cb1c3a49 * correctly name nested enum type debug symbols, resolves #40462 2023-10-10 23:16:31 +02:00
Pierre Muller
ad637e8f09 Fix range error in tstruth2bu.pp test 2023-10-10 16:33:44 +00:00
florian
a3f221e189 * allow set type to be a generic parameter, resolves #40453 2023-10-06 21:40:25 +02:00
Michaël Van Canneyt
ab4db7f475 * Fix OnChange being fired twice when adding an object. Fixes issue 40261 2023-10-02 22:17:59 +02:00
Frederic Kehrein
ba55932929 Fixing trying to consume ID for anonymous switch field 2023-09-28 22:42:49 +00:00
florian
803a6fea24 * throw an error if instructions which needs an operand size is used with one operand being a reference without size 2023-09-16 23:25:31 +02:00
Jonas Maebe
decbac8e8b Issue #40392; replaced test with correct one 2023-09-14 21:28:30 +02:00
Jonas Maebe
c96641f901 LLVM: fix double init/fini of local managed variables accessed from nested functions
resolves #40392
2023-09-14 15:38:21 +02:00
Rika Ichinose
324b77f317 Let fpc_dynarray_concat(_multi) reuse the only nonempty input or append to the destination if possible.
Improve fpc_dynarray_delete.
2023-09-12 20:58:50 +00:00
Jonas Maebe
bcf77c70fd default parameter values: fix crash
Fix crash when declaring default parameter values while current_procinfo
is not yet valid

resolves #40413
2023-09-11 21:35:07 +02:00
Pierre Muller
64a7bc13d6 Try several ports before failing 2023-09-10 11:11:35 +00:00
Sven/Sarah Barth
3b455c1cf2 * fix #40390: implement support for handling parameter names (including __SELF and __HIGH(<identifier>)) that resolve directly to registers
+ added tests
2023-09-08 17:30:32 +02:00
Sven/Sarah Barth
7f290c27ed * fix name of test 2023-09-08 16:11:13 +02:00
Sven/Sarah Barth
2df57e117b * fix #40381: also check for hints when parsing the parameters of a routine (including open array parameters) or the result type of a function
+ added tests
2023-09-08 15:54:08 +02:00
Sven/Sarah Barth
8fa439e64d + add some tests for hint directives in context of arrays (both with the element and the index) that check that the hint is indeed generated 2023-09-08 15:23:55 +02:00
Sven/Sarah Barth
98fc58b229 + add a test that check for correct functionality of all the SwapEndian() overloads 2023-09-08 15:02:51 +02:00
Pierre Muller
0210254b2d Fix wrong index error 2023-09-07 22:54:55 +02:00
florian
7e69f399b3 * patch and test by Rika: fixes self inserts in Insert(x, dynarray) and improves Insert(x, dynarray), resolves #40417 2023-08-29 22:23:22 +02:00
Rika Ichinose
1c4151d82e Remake AdjustLineBreaks.
This version is correct and supposedly better in other ways (except for a bit of clarity maybe).
2023-08-29 20:08:03 +00:00
florian
15e7dd3d9f * patch and test by Rika: Redirect StrUtils.RPos to StrUtils.RPosEx, fix a bit, improve a bit, resolves #40394 2023-08-27 22:33:00 +02:00
florian
fb391d571a * another test renamed 2023-08-27 10:48:15 +02:00
florian
e1f7b50985 * renamed tests so they are actually run 2023-08-27 10:09:40 +02:00
J. Gareth "Curious Kit" Moreton
1bcf4a5a8c * New test to detect SSE/AVX optimisation error 2023-08-24 19:41:41 +00:00
Jonas Maebe
1be7416816 default value: fix issue with inlining
Ensure the mangled name is always the same

Resolves #40404
2023-08-20 22:08:47 +02:00
ccrause
9440b17eea [AVR] Add command line options to selectively remove portions of the RTL startup code. 2023-08-15 21:33:58 +00:00
Jonas Maebe
50040a2cab default values: store as staticvarsyms in staticsymtable
Previously, they were stored as localvarsyms in either the localsymtable
(for procedures/functions) or as localvarsyms in the staticsymtable (for
init/fini code of units/main programs). The latter was a hack (staticsymtables
normally cannot contain localvarsyms) and caused the temp allocator to also
allocate them as a local in fini code even if the default was only in the init
code.

The new approach ensures at most one copy gets allocated per unit, it doesn't
require explicit initialisation (since staticvarsyms are in bss -> zeroed by
default), gets rid of the localvarsyms in staticsymtables, and as a bonus
solves an issue with inconsistent LLVM debug information for the localvarsym
in init/fini code (since the staticsymtable is shared between the init and
fini code, so was the local, and therefore we generated debug info stating
it was defined in the fini code but within the scope of the init code).

Resolves #40395
2023-08-15 21:13:48 +02:00
florian
cc27a5de78 + test from Rika for merge request 458 2023-08-14 23:21:25 +02:00
J. Gareth "Curious Kit" Moreton
11957d9a60 * New test, mostly for x86, to detect incorrect TEST/JNE/TEST/JNE optimisation 2023-08-12 23:43:05 +00:00
J. Gareth "Curious Kit" Moreton
6d5876a29c * New CMOV test at webtbs/tw40307.pp 2023-08-12 20:55:12 +00:00
Michaël Van Canneyt
56a906a421 * Hex2Bin Delphi-compatible overloads. Fixes issue #38712 2023-08-12 14:59:07 +02:00
Michaël Van Canneyt
fd39fd96b3 * Add enumerator for TStringBuilder. Fix issue #37088 2023-08-12 14:33:50 +02:00
Jonas Maebe
13346a42bc volatile: allow for assignments 2023-08-12 12:04:40 +02:00
Sven Barth
f258d2f498 * regenerate tests/Makefile 2023-08-03 22:35:05 +02:00
Sven Barth
82dd70e72f * fix parameter alignment on x86_64 when more than 6 parameters are involved (aka the stack is used)
+ added test
2023-08-03 22:34:28 +02:00
Jonas Maebe
45339ddc98 tw40324: fix compilation on unix platforms 2023-07-30 22:22:28 +02:00
Michaël Van Canneyt
8ca4afd2d0 * Tests for NAMESPACES directive 2023-07-26 09:55:12 +02:00
Michaël Van Canneyt
6e84d4275d * Fix for tmarshaller big endianness 2023-07-24 21:51:09 +02:00
Michaël Van Canneyt
b5433100f4 * cwstring for unix 2023-07-23 23:15:55 +02:00
Rika Ichinose
7f4420495b TMarshal & TMarshaller, strange things from Delphi. 2023-07-22 15:24:27 +02:00