Commit Graph

7977 Commits

Author SHA1 Message Date
Sven/Sarah Barth
823b376a9d * texrtti18.pp is no longer relevant due to 59a1199110 which adds support for array properties in Extended RTTI, so move the new texrtti20.pp over to texrtti18.pp 2024-11-01 15:30:18 +01:00
florian
99a9cfbc71 + additional test 2024-11-01 10:52:35 +01:00
florian
63734fb792 * unnecessary directives removed 2024-10-31 22:35:04 +01:00
Frederic Kehrein
59a1199110 Adding support for indexed properties in extended RTTI 2024-10-31 14:51:00 +00:00
florian
b7edddf9d9 * do not eat the semicolon after an absolute expression to a symbol, noted in #40978 2024-10-30 22:45:48 +01:00
florian
b28681e91d * properly reject function calls as target of absolute, resolves #40977
* better error message on invalid expressions for absolute
2024-10-29 22:23:25 +01:00
Pierre Muller
34b6d4f572 Pass -ll option to prepup utility to include longlog file into tar.gz testsuite results 2024-10-28 11:00:27 +01:00
Rika Ichinose
c08d73054a Return MemSize from FreeMem. 2024-10-27 21:44:01 +03:00
florian
511beac49c * get rid of the hack that tlabelnode inherits from tunarynode and stores a statement in left, resolves #40964 2024-10-26 16:11:24 +02:00
Sven/Sarah Barth
00fc962ca3 + fix #40963: print suitable messages for local unit, include, library and object paths if -vt is given
+ added test
2024-10-25 17:13:23 +02:00
Sven/Sarah Barth
3e8e02bede + extend test framework with ability to specify certain expected compiler messages using their ids 2024-10-25 17:11:47 +02:00
Sven/Sarah Barth
a1e9dc4447 * fix typo in tests/readme.txt 2024-10-25 17:08:59 +02:00
Sven/Sarah Barth
2ef822e8e8 * fix #40305: with type helpers now supporting inheriting from unique type aliases, declare a TRealHelper as a descendant of TDoubleHelper (cause Real is a Double)
+ added test
2024-10-25 15:26:32 +02:00
florian
5d4bb6db9b * patch by lag programming to replace bitcnt by popcnt, resolves #40962 2024-10-22 22:54:57 +02:00
florian
397293f09f + more fixes to mark symbols used by preprocessor expressions properly
+ made MarkSymbolAsUsed more fail safe
  + tests
2024-10-20 17:28:20 +02:00
florian
8b19929ad9 * fix test 2024-10-20 17:03:36 +02:00
florian
22ec4a2033 * mark symbols used in conditional compiling expressions using sizeof, resolves #40955 2024-10-20 14:37:09 +02:00
florian
b8a4a72760 * properly process all child nodes of call nodes in foreachnode, resolves #40957 2024-10-19 23:41:46 +02:00
Sven/Sarah Barth
e048266473 * fix #40259: global managed records with Initialize operator need to be initialized no matter if they are referenced in the current unit or not.
+ added test
2024-10-18 17:51:49 +02:00
Rika Ichinose
d63b6294b5 Compile “length(string or array) = 0” as “pointer(string or array) = nil” without further check, unless really required.
Also handle length <> 0, > 0, < 0, >= 0, <= 0, assuming lengths are never negative.
2024-10-16 16:53:59 +03:00
Sven/Sarah Barth
73420dcace * ensure that Default() symbols that use management operators are properly initalized/finalized
+ added test
2024-10-11 18:00:01 +02:00
florian
e7cf7538cd * improve test 2024-10-09 22:41:52 +02:00
Frederic Kehrein
a188322e76 Fixing bug where in const init no typecheck for symbol was performed 2024-10-09 19:48:53 +00:00
Michaël Van Canneyt
088f394440 * Implement TList<T>.pack. Patch by Alexander Bagel. Fixes issue #40927 2024-10-09 09:15:50 +02:00
florian
e91c8040ea * do not generate lea with 16 bit references on x86-64, resolves #40936 2024-10-07 22:53:54 +02:00
Michaël Van Canneyt
736edf6422 * Better testlocation 2024-10-02 07:36:17 +02:00
Frederic Kehrein
dcabb0151f Adding fpsockets unit to fcl-net 2024-10-02 07:36:17 +02:00
Frederic Kehrein
23dd7a5173 Adding TNullPtr to types
Additional changes:
* Now using TNullPtr instead of custom type in TNullable
* Adding assignment of variants with TNulPtr to avoid name conflicts
* Adding comparison to TNullPtr (Pointers, TObjects, TNullable)
2024-10-02 05:30:09 +00:00
Pierre Muller
77c51bf7e2 Add try/except block inside try/finally block in ExecuteRedir function 2024-10-01 14:03:01 -07:00
Pierre Muller
da0cefb364 Add %norun for tw36544a library 2024-10-01 14:03:01 -07:00
Pierre Muller
3707000121 Also accept EMathError exception 2024-10-01 14:03:00 -07:00
Pierre Muller
cbd4e681d0 Add missing %norun information for dotest utility (crashes AIX testsuite) 2024-10-01 14:03:00 -07:00
Frederic Kehrein
6ff63107a6 Adding pointer access to nullable 2024-10-01 13:18:39 +00:00
Kirill Kranz
52651a7ede First compiler Build 2024-09-29 16:56:18 +03:00
Frederic Kehrein
d3b14eb1ba Adding tuple unit 2024-09-29 12:49:57 +02:00
Frederic Kehrein
b5a0c3b1b6 Adding some convinience functions to TNullable 2024-09-28 13:05:08 +00:00
Rika Ichinose
fc1050a834 Make use of CPUX86_HINT_BSX_DEST_UNCHANGED_ON_ZF_1 in Bsf*/Bsr*. 2024-09-22 08:33:44 +00:00
florian
44d9234f38 * properly unlink unused type symbols from their defs to avoid
internal errors when generating debug info, resolves #40886
2024-09-20 22:49:08 +02:00
florian
8b48127b2c * as shared libraries without glibc on linux currently don't work, link those tests
on current fpc versions and linux always against glibc, so the shared library handling is tested
2024-09-19 22:57:45 +02:00
florian
76fc3275bc * handle except blocks as normal code block with regard to specialization of generics, resolves #40890 2024-09-17 23:02:25 +02:00
florian
9d7ea2c069 * revert check for boolean type when handling LOC_FLAG in tcgassignmentnode.pass_generate_code. This makes pas boolean the default,
resolves #40908
2024-09-16 22:48:18 +02:00
florian
5c91c89aea * avr: take advantage of sbiw in mod/div_word
+ test
2024-09-11 22:40:10 +02:00
Pierre Muller
cfe85a036b Add TEST_FAILLIST, TEST_LOG and TEST_LONGLOG variables, and use those to set LOGFILES list, to avoid troubles if LOG, LONGLOG or FAILLIST variables already are set 2024-09-11 11:21:12 +02:00
florian
9146eaf083 * fixed also comment 2024-09-03 21:04:09 +01:00
florian
266662971b + cosh(800) should raise an floating point overflow 2024-09-02 21:34:58 +01:00
florian
d43d581507 * fix test for non-x86 platforms 2024-09-01 21:19:25 +01:00
Pierre Muller
8a38755dab Add SEPLOG make variable, and add it to LOGFILES value 2024-08-30 22:57:57 +02:00
Pierre Muller
26a49835b5 Use seplog name for separate chunck output file 2024-08-30 22:57:57 +02:00
Pierre Muller
2db7b8d565 announce start of each chunk 2024-08-30 22:57:57 +02:00
Pierre Muller
7e07a36fe4 Rename separate logs to use sep_log prefix 2024-08-30 22:57:57 +02:00
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